[Python-checkins] gh-101167: fix bug in the new test.support.requires_specialization decorator (GH-101171)

miss-islington webhook-mailer at python.org
Thu Jan 19 18:45:59 EST 2023


https://github.com/python/cpython/commit/0c5db2a60701a939288eb4c7704382631a598398
commit: 0c5db2a60701a939288eb4c7704382631a598398
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-01-19T15:45:53-08:00
summary:

gh-101167: fix bug in the new test.support.requires_specialization decorator (GH-101171)



Fixes #101167.

Automerge-Triggered-By: GH:iritkatriel

files:
M Lib/test/support/__init__.py

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 37f90cfed212..e4e4de896dff 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1079,7 +1079,8 @@ def requires_limited_api(test):
         _testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)
 
 def requires_specialization(test):
-    return unittest.skipUnless(opcode.ENABLE_SPECIALIZATION, "requires specialization")
+    return unittest.skipUnless(
+        opcode.ENABLE_SPECIALIZATION, "requires specialization")(test)
 
 def _filter_suite(suite, pred):
     """Recursively filter test cases in a suite based on a predicate."""



More information about the Python-checkins mailing list