summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-01-12 10:26:26 (GMT)
committerGitHub <noreply@github.com>2021-01-12 10:26:26 (GMT)
commit11d13e83abedabba12b28773317f1a365113e7af (patch)
treea4af7df1e1ed36e858dd0c9df758ced291cf7eae /Lib/test/test_embed.py
parent44bf57aca627bd11a08b12fe4e4b6a0e1d268862 (diff)
downloadcpython-11d13e83abedabba12b28773317f1a365113e7af.zip
cpython-11d13e83abedabba12b28773317f1a365113e7af.tar.gz
cpython-11d13e83abedabba12b28773317f1a365113e7af.tar.bz2
bpo-42882: Add test_embed.test_unicode_id_init() (GH-24198)
Test that _PyUnicode_FromId() works when Python is initialized multiples times.
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index a7d9121..6833b25 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1472,5 +1472,11 @@ class AuditingTests(EmbeddingTestsMixin, unittest.TestCase):
timeout=support.SHORT_TIMEOUT,
returncode=1)
+class MiscTests(EmbeddingTestsMixin, unittest.TestCase):
+ def test_unicode_id_init(self):
+ # bpo-42882: Test that _PyUnicode_FromId() works
+ # when Python is initialized multiples times.
+ self.run_embedded_interpreter("test_unicode_id_init")
+
if __name__ == "__main__":
unittest.main()