diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-16 16:30:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 16:30:15 (GMT) |
commit | 54b43bb3bb88339b63182b3515cda3efa530ed62 (patch) | |
tree | 948f321e0b2b9925eec945d316cd3e010da69852 /Programs/_testembed.c | |
parent | 9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9 (diff) | |
download | cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.zip cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.gz cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.bz2 |
bpo-36763: Add _PyCoreConfig.configure_c_stdio (GH-13363)
Add tests for configure_c_stdio and pathconfig_warnings parameters.
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r-- | Programs/_testembed.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 4ee2cd1..87d159f 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -360,6 +360,8 @@ static int test_init_global_config(void) putenv("PYTHONUNBUFFERED="); Py_UnbufferedStdioFlag = 1; + Py_FrozenFlag = 1; + /* FIXME: test Py_LegacyWindowsFSEncodingFlag */ /* FIXME: test Py_LegacyWindowsStdioFlag */ @@ -481,6 +483,8 @@ static int test_init_from_config(void) Py_QuietFlag = 0; config.quiet = 1; + config.configure_c_stdio = 0; + putenv("PYTHONUNBUFFERED="); Py_UnbufferedStdioFlag = 0; config.buffered_stdio = 0; @@ -501,6 +505,9 @@ static int test_init_from_config(void) config.check_hash_pycs_mode = L"always"; + Py_FrozenFlag = 0; + config.pathconfig_warnings = 0; + err = _Py_InitializeFromConfig(&config); if (_Py_INIT_FAILED(err)) { _Py_ExitInitError(err); |