diff options
author | Brett Simmers <swtaarrs@users.noreply.github.com> | 2024-03-01 02:53:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 02:53:32 (GMT) |
commit | 339c8e1c13adc299a0e2e49c93067e7817692380 (patch) | |
tree | 4d2c0708d04ea383b533115e83ec4f49fbf826e7 /Lib/test/test_opcache.py | |
parent | 2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4 (diff) | |
download | cpython-339c8e1c13adc299a0e2e49c93067e7817692380.zip cpython-339c8e1c13adc299a0e2e49c93067e7817692380.tar.gz cpython-339c8e1c13adc299a0e2e49c93067e7817692380.tar.bz2 |
gh-115999: Disable the specializing adaptive interpreter in free-threaded builds (#116013)
For now, disable all specialization when the GIL might be disabled.
Diffstat (limited to 'Lib/test/test_opcache.py')
-rw-r--r-- | Lib/test/test_opcache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py index 2b2783d..5fb4b81 100644 --- a/Lib/test/test_opcache.py +++ b/Lib/test/test_opcache.py @@ -4,7 +4,7 @@ import dis import threading import types import unittest -from test.support import threading_helper, check_impl_detail +from test.support import threading_helper, check_impl_detail, requires_specialization # Skip this module on other interpreters, it is cpython specific: if check_impl_detail(cpython=False): @@ -506,6 +506,7 @@ class TestCallCache(unittest.TestCase): @threading_helper.requires_working_threading() +@requires_specialization 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: @@ -1021,6 +1022,7 @@ class TestRacesDoNotCrash(unittest.TestCase): class C: pass +@requires_specialization class TestInstanceDict(unittest.TestCase): def setUp(self): |