detect-test-pollution
detect-test-pollution copied to clipboard
"FileNotFoundError: [Errno 2] No such file or directory" when test could not load module
Hi. Hope this helps. Thanks to @cdce8p. Here are steps to reproduce #6
$ echo "from unknown import Unknown
def test():
assert True" > t.py
$ echo "t.py::test" > testids
$ detect-test-pollution \
--failing-test t.py::test \
--testids-file testids