]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101167: fix bug in the new test.support.requires_specialization decorator (GH...
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Thu, 19 Jan 2023 23:45:53 +0000 (23:45 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2023 23:45:53 +0000 (15:45 -0800)
Fixes #101167.

Automerge-Triggered-By: GH:iritkatriel
Lib/test/support/__init__.py

index 37f90cfed2122d6a02e224a21e76216cddd17ee6..e4e4de896dfff8bb2e3fcff7728a5e0669f878c5 100644 (file)
@@ -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."""