slarse / Python

All Algorithms implemented in Python
MIT License
0 stars 0 forks source link

Pytest fails building because of duplicated test file names #88

Closed larshum closed 5 years ago

larshum commented 5 years ago

Error output:

________________ ERROR collecting tests/graphs/test_dijkstra.py ________________
import file mismatch:
imported module 'test_dijkstra' has this __file__ attribute:
  /home/travis/build/slarse/Python/tests/data_structures/graph/test_dijkstra.py
which is not the same as the test file we want to collect:
  /home/travis/build/slarse/Python/tests/graphs/test_dijkstra.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____ ERROR collecting tests/test_dynamic_programming/test_floyd_warshall.py ____
import file mismatch:
imported module 'test_floyd_warshall' has this __file__ attribute:
  /home/travis/build/slarse/Python/tests/data_structures/graph/test_floyd_warshall.py
which is not the same as the test file we want to collect:
  /home/travis/build/slarse/Python/tests/test_dynamic_programming/test_floyd_warshall.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
larshum commented 5 years ago

Fixed by #91