Skip to content

Commit 85580ca

Browse files
committed
add decorator for required API
1 parent f0ffafd commit 85580ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def get_opnames(ex):
5757

5858
@requires_specialization
5959
@unittest.skipIf(Py_GIL_DISABLED, "optimizer not yet supported in free-threaded builds")
60+
@unittest.skipUnless(hasattr(_testinternalcapi, "new_uop_optimizer"), "required infrastructure")
6061
class TestExecutorInvalidation(unittest.TestCase):
6162

6263
def test_invalidate_object(self):

0 commit comments

Comments
 (0)