Skip to content

Commit ecd2b0e

Browse files
committed
--import-mode: allow for "importlib"
Ref: pytest-dev/py#203
1 parent 6b2ada0 commit ecd2b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def pytest_addoption(parser):
101101
group.addoption(
102102
"--import-mode",
103103
default="prepend",
104-
choices=["prepend", "append"],
104+
choices=["prepend", "append", "importlib"],
105105
dest="importmode",
106106
help="prepend/append to sys.path when importing test modules, "
107107
"default is to prepend.",

0 commit comments

Comments
 (0)