[Bug]: The tests parent directory ("."
) is added to the PYTHONPATH when using py_pytest_main
#479
Labels
bug
Something isn't working
What happened?
When using
py_pytest_main
the target's parent directory is added to the PYTHONPATH causing the same issues as in #368.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: bazel 8.0.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved: python
How to reproduce
If
my_test.py
has an import for e.g.concurrent.futures
and there is aconcurrent.py
in the same directory it will cause a clash.The text was updated successfully, but these errors were encountered: