GoogleContainerTools / GoogleContainerTools/container-debug-support

Python tests are non-hermetic

Aperta
#116 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
kind/bug lang/python meta/testing
Lingua principale
Go
Stelle
104
Fork
32
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The python launcher uses `exec.LookPath` to find `python` in the `PATH`. As a result, tests fail on vanilla'ish macOS 12.3 where Python 2.7 was removed and Python 3 is only available as `python3`.

Since the tests don't actually launch Python, we should have the lookup be pluggable.

Workaround: create a `python` in the PATH before running the tests.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.