Skip to content

Commit 2d775e4

Browse files
committed
with all imports absolute, pytest --import-mode=importlib works
importlib is a more robust mechanism for test discovery, which is indended to become the default in a future version of pytest
1 parent 28478f9 commit 2d775e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --import-mode=importlib

0 commit comments

Comments
 (0)