https://github.com/python/cpython/commit/8d4a244f1516dcde23becc2a273d30c202237598
commit: 8d4a244f1516dcde23becc2a273d30c202237598
branch: main
author: Kirill Podoprigora <[email protected]>
committer: colesbury <[email protected]>
date: 2024-04-19T11:38:13-04:00
summary:
gh-118079: Fix ``requires_singlephase_init`` helper (#118081)
Before this PR tests decorated with a `requires_singlephase_init` helper
did not run because of an incorrect call to the `requires_gil_enabled`
helper.
files:
M Lib/test/test_import/__init__.py
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 4726619b08edc4..469d1fbe59aaa2 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -159,9 +159,8 @@ def meth(self, _meth=meth):
finally:
restore__testsinglephase()
meth = cpython_only(meth)
- # gh-117649: free-threaded build does not currently support single-phase
- # init modules in subinterpreters.
- meth = requires_gil_enabled(meth)
+ msg = "gh-117694: free-threaded build does not currently support
single-phase init modules in sub-interpreters"
+ meth = requires_gil_enabled(msg)(meth)
return unittest.skipIf(_testsinglephase is None,
'test requires _testsinglephase module')(meth)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]