Skip to content

Commit 07fab63

Browse files
committed
Inject the current directory to sys.path in multiprocessing tests. Closes #673. Ref pytest-dev/pytest#12178.
1 parent 33ad6a5 commit 07fab63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_multiprocess.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
import keyring
77

88

9+
@pytest.fixture(autouse=True)
10+
def workaround_pytest_12178(monkeypatch):
11+
"""
12+
Ensure the current directory is on sys.path so that `tests` is importable.
13+
14+
Workaround for #673.
15+
"""
16+
monkeypatch.syspath_prepend('.')
17+
18+
919
def subprocess_get():
1020
keyring.get_password('test_app', 'test_user')
1121

0 commit comments

Comments
 (0)