Skip to content
Snippets Groups Projects
Commit e4c707d8 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

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

Fix hanging test when executed outside tox.
parent c2402f40
No related branches found
No related tags found
No related merge requests found
Pipeline #5814 passed
[pytest] [pytest]
# We need this to avoid conflicts between the autoloaded fixture, and the addopts =
# manually loaded one. # we need this to avoid conflicts between the autoloaded fixture,
addopts = -p no:pytest_swh_scheduler # and the manually loaded one.
-p no:pytest_swh_scheduler
--import-mode importlib
norecursedirs = build docs .* norecursedirs = build docs .*
asyncio_mode = strict asyncio_mode = strict
...@@ -13,7 +13,6 @@ deps = ...@@ -13,7 +13,6 @@ deps =
pytest-cov pytest-cov
commands = commands =
pytest --doctest-modules \ pytest --doctest-modules \
--import-mode importlib \
--rootdir {envsitepackagesdir} \ --rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/swh/lister \ --cov={envsitepackagesdir}/swh/lister \
--cov-branch \ --cov-branch \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment