mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
gh-124402: Require cpu resource in test_super slow method (#124434)
test___class___modification_multithreaded() now requires the 'cpu' test resource on a Free Threaded build.
This commit is contained in:
parent
b169cf394f
commit
5a60566074
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@ import textwrap
|
|||
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 @@ class TestSuper(unittest.TestCase):
|
|||
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…
Add table
Add a link
Reference in a new issue