GoogleContainerTools / GoogleContainerTools/container-debug-support

Python tests are non-hermetic

Ouverte
#116 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
kind/bug lang/python meta/testing
Langage dominant
Go
Étoiles
104
Forks
32
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.