summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_embed_set_config.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-05-19 19:23:53 (GMT)
committerGitHub <noreply@github.com>2022-05-19 19:23:53 (GMT)
commit403d16fa28764718dcd0536ccb3ab8d05768465d (patch)
treee1c8a70393a144f722945cf91e65a00b8cf7cc95 /Lib/test/_test_embed_set_config.py
parent3fd86100022103f41ada043f5bb5a7201e80ac27 (diff)
downloadcpython-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.py5
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,