mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Fix test failure of test_installed_from_venv when running with pytest-runner
Passing PYTHONPATH here fixes the module not found error when running with pytest-runner without pre-commit installed first.
This commit is contained in:
parent
bb6f1efe63
commit
a6ac0b5fb0
1 changed files with 2 additions and 0 deletions
|
|
@ -530,6 +530,8 @@ def test_installed_from_venv(tempdir_factory, store):
|
|||
'GIT_COMMITTER_NAME': os.environ['GIT_COMMITTER_NAME'],
|
||||
'GIT_AUTHOR_EMAIL': os.environ['GIT_AUTHOR_EMAIL'],
|
||||
'GIT_COMMITTER_EMAIL': os.environ['GIT_COMMITTER_EMAIL'],
|
||||
# Pass PYTHONPATH to support running tests using pytest-runner
|
||||
'PYTHONPATH': os.environ.get('PYTHONPATH', ''),
|
||||
},
|
||||
)
|
||||
assert ret == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue