Skip to content

Commit

Permalink
[3.13] pythongh-124402: Require cpu resource in test_super slow method (
Browse files Browse the repository at this point in the history
pythonGH-124434) (python#124468)

pythongh-124402: Require cpu resource in test_super slow method (pythonGH-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 <[email protected]>
  • Loading branch information
miss-islington and vstinner authored Sep 24, 2024
1 parent 8c0c344 commit 2f25d85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lib/test/test_super.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2f25d85

Please sign in to comment.