GoogleContainerTools / GoogleContainerTools/container-debug-support

Python tests are non-hermetic

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
kind/bug lang/python meta/testing
Dominant language
Go
Stars
104
Forks
32
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.