I'm having a file structure like below:
- tests/python/project-a
- module_a
- test_xxx.py
- module_b/module_c
- test_xxx.py
And when I run `./pants test tests/python/project-a/module_a/::` I end up having the following error:
import file mismatch:
imported module 'test_territory' has this __file__ attribute:
/Users/.../tests/python/project-a/module_a/test_xxx.py
which is not the same as the test file we want to collect:
/Users/.../tests/python/project-a/module_a/module_b/module_c/test_xxx.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
I know I can just rename one of the test files. But since I'm intending to migrate some existing codebase which used to be in multiple repos into one Pants-managed repo, it will tremendously simplify the process if Pants allow test files with same name. Any way to achieve that? Thanks.