Skip to content

Commit 0c5db2a

Browse files
authored
gh-101167: fix bug in the new test.support.requires_specialization decorator (GH-101171)
Fixes #101167. Automerge-Triggered-By: GH:iritkatriel
1 parent 9ec9b20 commit 0c5db2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,8 @@ def requires_limited_api(test):
10791079
_testcapi.LIMITED_API_AVAILABLE, 'needs Limited API support')(test)
10801080

10811081
def requires_specialization(test):
1082-
return unittest.skipUnless(opcode.ENABLE_SPECIALIZATION, "requires specialization")
1082+
return unittest.skipUnless(
1083+
opcode.ENABLE_SPECIALIZATION, "requires specialization")(test)
10831084

10841085
def _filter_suite(suite, pred):
10851086
"""Recursively filter test cases in a suite based on a predicate."""

0 commit comments

Comments
 (0)