diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-07-13 09:43:07 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-07-13 11:07:50 +0200 |
commit | 5ee5f44e8450fd82747f9624533302d3009f4588 (patch) | |
tree | fa3c55b294cb8886aaf9d68b9d1367059d13f956 /tests/test_self.py | |
parent | bbc4eac8323d12a174f7879a488cab72c449e3fa (diff) | |
download | pylint-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.py | 2 |
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:] |