Skip to content

Commit

Permalink
GH-106214: Fix test_opcache to skip threaded tests on non-threaded …
Browse files Browse the repository at this point in the history
…platforms (GH-106166)

This skips the test added in GH-105953 on threadless builds.
  • Loading branch information
hoodmane authored Jun 28, 2023
1 parent 1173143 commit 4bde894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_opcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import threading
import types
import unittest
from test.support import threading_helper


class TestLoadSuperAttrCache(unittest.TestCase):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4bde894

Please sign in to comment.