mirror of https://github.com/python/cpython.git
[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 5a60566074
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
8c0c3443f3
commit
2f25d855df
|
@ -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,11 @@ 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:
|
||||
# gh-124402: On a Free Threaded build, the test takes a few minutes
|
||||
support.requires('cpu')
|
||||
|
||||
class Foo:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue