gh-124402: Require cpu resource in test_super slow method (GH-124434)
test___class___modification_multithreaded() now requires the 'cpu'
test resource on a Free Threaded build.
(cherry picked from commit
5a605660745d32a9b9f4208666889c702527208c)
Co-authored-by: Victor Stinner <vstinner@python.org>
import threading
import unittest
from unittest.mock import patch
+from test import support
from test.support import import_helper, threading_helper
This should be the case anyways as our test suite sets
an audit hook.
"""
+
+ if support.Py_GIL_DISABLED:
+ # gh-124402: On a Free Threaded build, the test takes a few minutes
+ support.requires('cpu')
+
class Foo:
pass