Skip to content

Commit

Permalink
Inject the current directory to sys.path in multiprocessing tests. Cl…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 2, 2024
1 parent 33ad6a5 commit 07fab63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_multiprocess.py
Expand Up @@ -6,6 +6,16 @@
import keyring


@pytest.fixture(autouse=True)
def workaround_pytest_12178(monkeypatch):
"""
Ensure the current directory is on sys.path so that `tests` is importable.
Workaround for #673.
"""
monkeypatch.syspath_prepend('.')


def subprocess_get():
keyring.get_password('test_app', 'test_user')

Expand Down

0 comments on commit 07fab63

Please sign in to comment.