summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-06-17 19:16:00 (GMT)
committerGitHub <noreply@github.com>2024-06-17 19:16:00 (GMT)
commit2c66318cdc0545da37e7046533dfe74bde129d91 (patch)
tree13c31f6df905d37a572718bf4994ffeb04c28f38 /Lib/test
parente73c42e15cf83c7a81de016ce2827c04110c80c3 (diff)
downloadcpython-2c66318cdc0545da37e7046533dfe74bde129d91.zip
cpython-2c66318cdc0545da37e7046533dfe74bde129d91.tar.gz
cpython-2c66318cdc0545da37e7046533dfe74bde129d91.tar.bz2
gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count (gh-120529)
gh-120182 added new global state (interp_count), but didn't add thread-safety for it. This change eliminates the possible race.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_interpreters/test_stress.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_interpreters/test_stress.py b/Lib/test/test_interpreters/test_stress.py
index 40d2d77..e400535 100644
--- a/Lib/test/test_interpreters/test_stress.py
+++ b/Lib/test/test_interpreters/test_stress.py
@@ -22,7 +22,6 @@ class StressTests(TestBase):
interp = interpreters.create()
alive.append(interp)
- @unittest.skip('(temporary) gh-120524: there is a race that needs fixing')
@support.requires_resource('cpu')
def test_create_many_threaded(self):
alive = []