From 0c5db2a60701a939288eb4c7704382631a598398 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Thu, 19 Jan 2023 23:45:53 +0000 Subject: gh-101167: fix bug in the new test.support.requires_specialization decorator (GH-101171) Fixes #101167. Automerge-Triggered-By: GH:iritkatriel --- Lib/test/support/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 37f90cf..e4e4de8 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.""" -- cgit v0.12