diff options
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r-- | Lib/test/test_embed.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 6fb4012..2a5ace0 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -902,6 +902,23 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): api=API_PYTHON, modify_path_cb=modify_path) + def test_init_sys_add(self): + config = { + 'faulthandler': 1, + 'xoptions': [ + 'config_xoption', + 'cmdline_xoption', + 'sysadd_xoption', + 'faulthandler', + ], + 'warnoptions': [ + 'ignore:::config_warnoption', + 'ignore:::cmdline_warnoption', + 'ignore:::sysadd_warnoption', + ], + } + self.check_all_configs("test_init_sys_add", config, api=API_PYTHON) + def test_init_run_main(self): code = ('import _testinternalcapi, json; ' 'print(json.dumps(_testinternalcapi.get_configs()))') |