From 0972b44519ad1be6aedee6e4bbdffadac5cd14b4 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Thu, 19 Jan 2023 23:22:13 +0000 Subject: [PATCH] gh-101167: fix bug in the new test.support.requires_specialization decorator --- 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 37f90cfed2122d..e4e4de896dfff8 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."""