pytest.ini: Ensure '--import-mode importlib' option is always used

Fix hanging test when executed outside tox.
This commit is contained in:
Antoine Lambert 2023-12-01 14:42:34 +01:00
parent c2402f405f
commit e4c707d807
2 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,9 @@
[pytest]
# We need this to avoid conflicts between the autoloaded fixture, and the
# manually loaded one.
addopts = -p no:pytest_swh_scheduler
addopts =
# we need this to avoid conflicts between the autoloaded fixture,
# and the manually loaded one.
-p no:pytest_swh_scheduler
--import-mode importlib
norecursedirs = build docs .*
asyncio_mode = strict

View file

@ -13,7 +13,6 @@ deps =
pytest-cov
commands =
pytest --doctest-modules \
--import-mode importlib \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/swh/lister \
--cov-branch \