diff options
author | Steve Dower <steve.dower@python.org> | 2022-05-19 19:23:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 19:23:53 (GMT) |
commit | 403d16fa28764718dcd0536ccb3ab8d05768465d (patch) | |
tree | e1c8a70393a144f722945cf91e65a00b8cf7cc95 /Lib/test/_test_embed_set_config.py | |
parent | 3fd86100022103f41ada043f5bb5a7201e80ac27 (diff) | |
download | cpython-403d16fa28764718dcd0536ccb3ab8d05768465d.zip cpython-403d16fa28764718dcd0536ccb3ab8d05768465d.tar.gz cpython-403d16fa28764718dcd0536ccb3ab8d05768465d.tar.bz2 |
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
Diffstat (limited to 'Lib/test/_test_embed_set_config.py')
-rw-r--r-- | Lib/test/_test_embed_set_config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/_test_embed_set_config.py b/Lib/test/_test_embed_set_config.py index e7b7106..7ff641b 100644 --- a/Lib/test/_test_embed_set_config.py +++ b/Lib/test/_test_embed_set_config.py @@ -236,10 +236,11 @@ class SetConfigTests(unittest.TestCase): module_search_paths=['a', 'b', 'c']) self.assertEqual(sys.path, ['a', 'b', 'c']) - # Leave sys.path unchanged if module_search_paths_set=0 + # sys.path is reset if module_search_paths_set=0 self.set_config(module_search_paths_set=0, module_search_paths=['new_path']) - self.assertEqual(sys.path, ['a', 'b', 'c']) + self.assertNotEqual(sys.path, ['a', 'b', 'c']) + self.assertNotEqual(sys.path, ['new_path']) def test_argv(self): self.set_config(parse_argv=0, |