summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-08-01 00:13:04 (GMT)
committerGitHub <noreply@github.com>2018-08-01 00:13:04 (GMT)
commitb75d7e243512afcfb2285e6471262478383e09db (patch)
treea669ce23fbfe84ddbbb5b84ec0112df60ccf5f73 /Lib/test/test_embed.py
parent8ed317f1ca42a43df14282bbc3ccc0b5610432f4 (diff)
downloadcpython-b75d7e243512afcfb2285e6471262478383e09db.zip
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.gz
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.bz2
bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)
Modify frozenmain.c to use _Py_InitializeFromConfig().
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 e00b1d8..dd7d273 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -289,6 +289,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'_install_importlib': 1,
'_check_hash_pycs_mode': 'default',
+ '_frozen': 0,
}
def check_config(self, testname, expected):
@@ -330,6 +331,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'unbuffered_stdio': 1,
'utf8_mode': 1,
'user_site_directory': 0,
+ '_frozen': 1,
}
self.check_config("init_global_config", config)
@@ -362,7 +364,9 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'unbuffered_stdio': 1,
'user_site_directory': 0,
'faulthandler': 1,
+
'_check_hash_pycs_mode': 'always',
+ '_frozen': 1,
}
self.check_config("init_from_config", config)