Compare commits
20 Commits
Author | SHA256 | Date | |
---|---|---|---|
068c043727 | |||
98fb24af0a | |||
68d9faaf48 | |||
e125c8b1c6 | |||
54ba79b094 | |||
87e5409d47 | |||
5cd352cdd3 | |||
c2c17ae0c8 | |||
f7a749a94f | |||
1dd67d7fa1 | |||
2a1a41e7d1 | |||
c34e16028c | |||
359af771ed | |||
1b1a2d9997 | |||
bf42276132 | |||
0292233247 | |||
f07e33e503 | |||
2758642056 | |||
f662bad19a | |||
376ed3b49c |
BIN
pytest-virtualenv-1.7.0.tar.gz
(Stored with Git LFS)
BIN
pytest-virtualenv-1.7.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
pytest-virtualenv-1.8.0.tar.gz
(Stored with Git LFS)
BIN
pytest-virtualenv-1.8.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -1,29 +0,0 @@
|
||||
--- a/tests/unit/test_venv.py
|
||||
+++ b/tests/unit/test_venv.py
|
||||
@@ -1,4 +1,7 @@
|
||||
-import mock
|
||||
+try:
|
||||
+ from unittest.mock import patch
|
||||
+except ImportError:
|
||||
+ from mock import patch
|
||||
|
||||
import pytest_virtualenv as venv
|
||||
from pytest_shutil import env
|
||||
@@ -6,7 +9,7 @@ from pytest_shutil import env
|
||||
|
||||
def test_PYTHONPATH_not_present_in_testing_env_if_set():
|
||||
with env.set_env('PYTHONPATH', 'fred'):
|
||||
- with mock.patch.object(venv.Workspace, 'run') as run:
|
||||
+ with patch.object(venv.Workspace, 'run') as run:
|
||||
venv.VirtualEnv()
|
||||
call = run.mock_calls[0]
|
||||
assert 'PYTHONPATH' not in call[2]['env']
|
||||
@@ -18,7 +21,7 @@ def test_PYTHONPATH_not_present_in_testi
|
||||
|
||||
def test_PYTHONPATH_not_present_in_testing_env_if_unset():
|
||||
with env.no_env('PYTHONPATH'):
|
||||
- with mock.patch.object(venv.Workspace, 'run') as run:
|
||||
+ with patch.object(venv.Workspace, 'run') as run:
|
||||
venv.VirtualEnv()
|
||||
call = run.mock_calls[0]
|
||||
assert 'PYTHONPATH' not in call[2]['env']
|
Reference in New Issue
Block a user