summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-16 16:30:15 (GMT)
committerGitHub <noreply@github.com>2019-05-16 16:30:15 (GMT)
commit54b43bb3bb88339b63182b3515cda3efa530ed62 (patch)
tree948f321e0b2b9925eec945d316cd3e010da69852 /Lib/test/test_embed.py
parent9ef5dcaa0b3c7c7ba28dbb3ec0c9507d9d05e3a9 (diff)
downloadcpython-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 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index c3c1a3e..b1872ac 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -331,6 +331,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'verbose': 0,
'quiet': 0,
'user_site_directory': 1,
+ 'configure_c_stdio': 1,
'buffered_stdio': 1,
'stdio_encoding': GET_DEFAULT_CONFIG,
@@ -558,6 +559,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'filesystem_encoding': 'utf-8',
'filesystem_errors': self.UTF8_MODE_ERRORS,
'user_site_directory': 0,
+ 'pathconfig_warnings': 0,
}
self.check_config("init_global_config", config, preconfig)
@@ -597,11 +599,13 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'write_bytecode': 0,
'verbose': 1,
'quiet': 1,
+ 'configure_c_stdio': 0,
'buffered_stdio': 0,
'user_site_directory': 0,
'faulthandler': 1,
'check_hash_pycs_mode': 'always',
+ 'pathconfig_warnings': 0,
}
self.check_config("init_from_config", config, preconfig)