https://github.com/python/cpython/commit/2f25d855dffe03a5f15ad8709d495f8dc9daae27
commit: 2f25d855dffe03a5f15ad8709d495f8dc9daae27
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: Yhg1s <[email protected]>
date: 2024-09-24T22:23:17Z
summary:

[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 5a605660745d32a9b9f4208666889c702527208c)

Co-authored-by: Victor Stinner <[email protected]>

files:
M Lib/test/test_super.py

diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py
index 3ffbe03f0c2f11..b0d1f12513d404 100644
--- a/Lib/test/test_super.py
+++ b/Lib/test/test_super.py
@@ -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
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to