mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-115999: Disable the specializing adaptive interpreter in free-threaded builds (#116013)
For now, disable all specialization when the GIL might be disabled.
This commit is contained in:
parent
2e94a6687c
commit
339c8e1c13
9 changed files with 96 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ import textwrap
|
|||
import types
|
||||
import unittest
|
||||
import asyncio
|
||||
from test.support import requires_specialization
|
||||
|
||||
PAIR = (0,1)
|
||||
|
||||
|
|
@ -815,6 +816,9 @@ class ExceptionMonitoringTest(CheckEvents):
|
|||
|
||||
self.check_events(func1, [("raise", KeyError)])
|
||||
|
||||
# gh-116090: This test doesn't really require specialization, but running
|
||||
# it without specialization exposes a monitoring bug.
|
||||
@requires_specialization
|
||||
def test_implicit_stop_iteration(self):
|
||||
|
||||
def gen():
|
||||
|
|
@ -963,6 +967,7 @@ class ExceptionMonitoringTest(CheckEvents):
|
|||
)
|
||||
self.assertEqual(events[0], ("throw", IndexError))
|
||||
|
||||
@requires_specialization
|
||||
def test_no_unwind_for_shim_frame(self):
|
||||
|
||||
class B:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue