From: Hood Chatham Date: Wed, 28 Jun 2023 20:04:59 +0000 (-0700) Subject: GH-106214: Fix `test_opcache` to skip threaded tests on non-threaded platforms (GH... X-Git-Tag: v3.13.0a1~1609 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F106215%2Fhead;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py index 2f6f91ded248..564dc4745ae6 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: