diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-07-01 19:52:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 19:52:45 +0200 |
commit | 67310023f299b5a2fad71fca449b46d280036690 (patch) | |
tree | 50b2da097996f106b68b802acbd579a41950c3e2 /Lib/test/test_embed.py | |
parent | e6b64b756f940147728ea7808fb686ffcae89176 (diff) | |
download | cpython-git-67310023f299b5a2fad71fca449b46d280036690.tar.gz |
bpo-36763: Use PyConfig_Clear() (GH-14445)
Stop using "static PyConfig", PyConfig must now always use
dynamically allocated strings: use PyConfig_SetString(),
PyConfig_SetArgv() and PyConfig_Clear().
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r-- | Lib/test/test_embed.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index e1cf4be506..b2cd55016e 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -695,10 +695,19 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): 'pycache_prefix': 'conf_pycache_prefix', 'program_name': './conf_program_name', - 'argv': ['-c', 'arg2'], + 'argv': ['-c', 'arg2', ], 'parse_argv': 1, - 'xoptions': ['xoption1=3', 'xoption2=', 'xoption3'], - 'warnoptions': ['error::ResourceWarning', 'default::BytesWarning'], + 'xoptions': [ + 'config_xoption1=3', + 'config_xoption2=', + 'config_xoption3', + 'cmdline_xoption', + ], + 'warnoptions': [ + 'config_warnoption', + 'cmdline_warnoption', + 'default::BytesWarning', + ], 'run_command': 'pass\n', 'site_import': 0, |