summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-07-13 09:43:07 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2022-07-13 11:07:50 +0200
commit5ee5f44e8450fd82747f9624533302d3009f4588 (patch)
treefa3c55b294cb8886aaf9d68b9d1367059d13f956 /tests/test_self.py
parentbbc4eac8323d12a174f7879a488cab72c449e3fa (diff)
downloadpylint-git-5ee5f44e8450fd82747f9624533302d3009f4588.tar.gz
[pythonpath context manager] Fix a bug where pythonpath was not restored correctly
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index 8acfaf7a0..4482d0a69 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -758,7 +758,7 @@ class TestRunTC:
mock_getcwd.return_value = cwd
paths = [cwd, *default_paths]
sys.path = copy(paths)
- with _test_environ_pythonpath(None):
+ with _test_environ_pythonpath():
modify_sys_path()
assert sys.path == paths[1:]