summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-09 19:56:57 (GMT)
committerGitHub <noreply@github.com>2020-03-09 19:56:57 (GMT)
commit3225b9f9739cd4bcca372d0fa939cea1ae5c6402 (patch)
tree008faa6d058d9f9e449bf2113287aa5e30c8a35f /Lib/test/test_embed.py
parenteebaa9bfc593d5a46b293c1abd929fbfbfd28199 (diff)
downloadcpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.zip
cpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.tar.gz
cpython-3225b9f9739cd4bcca372d0fa939cea1ae5c6402.tar.bz2
bpo-39877: Remove useless PyEval_InitThreads() calls (GH-18883)
Py_Initialize() calls PyEval_InitThreads() since Python 3.7. It's no longer needed to call it explicitly.
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 87842b9..46ed113 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -267,9 +267,8 @@ class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase):
def test_bpo20891(self):
"""
- bpo-20891: Calling PyGILState_Ensure in a non-Python thread before
- calling PyEval_InitThreads() must not crash. PyGILState_Ensure() must
- call PyEval_InitThreads() for us in this case.
+ bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not
+ crash.
"""
out, err = self.run_embedded_interpreter("test_bpo20891")
self.assertEqual(out, '')