GH-106214: Fix test_opcache to skip threaded tests on non-threaded platforms (GH-106166)

This skips the test added in GH-105953 on threadless builds.
This commit is contained in:
Hood Chatham 2023-06-28 13:04:59 -07:00 • committed by GitHub
parent 11731434df
commit 4bde89462a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import dis
import threading
import types
import unittest
from test.support import threading_helper
class TestLoadSuperAttrCache(unittest.TestCase):
@ -484,6 +485,7 @@ class TestCallCache(unittest.TestCase):
f()
@threading_helper.requires_working_threading()
class TestRacesDoNotCrash(unittest.TestCase):
# Careful with these. Bigger numbers have a higher chance of catching bugs,
# but you can also burn through a *ton* of type/dict/function versions: