Control: severity 893242 normal Control: tags 893242 + wontfix > File "/usr/lib/python3.6/unittest/loader.py", line 451, in _find_test_path > msg % (mod_name, module_dir, expected_dir)) > ImportError: 'test_archive' module incorrectly imported from > '/build/1st/python-pygit2-0.26.3/.pybuild/cpython3_3.6_pygit2/build/test'. > Expected '/build/1st/python-pygit2-0.26.3/test'. Is this module globally > installed?
I change the current directory to the build directory on purpose. I want to test files that will be installed in the package, not the source files and that's what happens if you start tests from source dir (due to Python's "." in sys.path). I'm amazed that even stdlib enforces such insane setting... PS note that previous version of dh-python/pybuild also used build dir as current directory