mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-101167: fix bug in the new test.support.requires_specialization decorator (GH-101171)
Fixes #101167. Automerge-Triggered-By: GH:iritkatriel
This commit is contained in:
parent
9ec9b203ea
commit
0c5db2a607
1 changed files with 2 additions and 1 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue