Skip to content

Commit 2f25d85

Browse files
[3.13] gh-124402: Require cpu resource in test_super slow method (GH-124434) (#124468)
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 5a60566) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 8c0c344 commit 2f25d85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_super.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import threading
55
import unittest
66
from unittest.mock import patch
7+
from test import support
78
from test.support import import_helper, threading_helper
89

910

@@ -513,6 +514,11 @@ def test___class___modification_multithreaded(self):
513514
This should be the case anyways as our test suite sets
514515
an audit hook.
515516
"""
517+
518+
if support.Py_GIL_DISABLED:
519+
# gh-124402: On a Free Threaded build, the test takes a few minutes
520+
support.requires('cpu')
521+
516522
class Foo:
517523
pass
518524

0 commit comments

Comments
 (0)