diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2023-06-28 20:04:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 20:04:59 (GMT) |
commit | 4bde89462a95e5962e1467cfc1af5a6094c0c858 (patch) | |
tree | 67ec18f7fd3441327d142a1c2cf9756b848e7cbb /Lib | |
parent | 11731434df2d7d29b4260e5ad65b993cea775c36 (diff) | |
download | cpython-4bde89462a95e5962e1467cfc1af5a6094c0c858.zip cpython-4bde89462a95e5962e1467cfc1af5a6094c0c858.tar.gz cpython-4bde89462a95e5962e1467cfc1af5a6094c0c858.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_opcache.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py index 2f6f91d..564dc47 100644 --- a/Lib/test/test_opcache.py +++ b/Lib/test/test_opcache.py @@ -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: |