From 492bb551e9c601f6d5b863d2713bd5cbdc9e04f5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 24 Sep 2024 14:28:28 +0200 Subject: [PATCH] gh-124402: Require cpu resource in test_super slow method test___class___modification_multithreaded() now requires the 'cpu' tets resource on Free Threaded build. --- Lib/test/test_super.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py index 3ffbe03f0c2f110..b4df31bfcae3f74 100644 --- a/Lib/test/test_super.py +++ b/Lib/test/test_super.py @@ -4,6 +4,7 @@ import threading import unittest from unittest.mock import patch +from test import support from test.support import import_helper, threading_helper @@ -513,6 +514,10 @@ def test___class___modification_multithreaded(self): This should be the case anyways as our test suite sets an audit hook. """ + + if support.Py_GIL_DISABLED: + support.requires('cpu') + class Foo: pass