diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-16 18:30:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 18:30:15 +0200 |
commit | 54b43bb3bb88339b63182b3515cda3efa530ed62 (patch) | |
tree | 948f321e0b2b9925eec945d316cd3e010da69852 /Programs | |
parent | bpo-36763: Add _Py_InitializeMain() (GH-13362) (diff) | |
download | cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.gz cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.tar.bz2 cpython-54b43bb3bb88339b63182b3515cda3efa530ed62.zip |
bpo-36763: Add _PyCoreConfig.configure_c_stdio (GH-13363)
Add tests for configure_c_stdio and pathconfig_warnings parameters.
Diffstat (limited to 'Programs')
-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 4ee2cd1b407..87d159fe721 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); |