From 4bde89462a95e5962e1467cfc1af5a6094c0c858 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 28 Jun 2023 13:04:59 -0700 Subject: [PATCH] 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. --- Lib/test/test_opcache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py index 2f6f91ded248bb..564dc4745ae64e 100644 --- a/Lib/test/test_opcache.py +++ b/Lib/test/test_opcache.py @@ -2,6 +2,7 @@ import threading import types import unittest +from test.support import threading_helper class TestLoadSuperAttrCache(unittest.TestCase): @@ -484,6 +485,7 @@ def f(x, y): 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: