mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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:
parent
11731434df
commit
4bde89462a
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue