gh-136438: Make sure test_interpreters pass with all optimization levels (GH-136499)

This commit is contained in:
Semyon Moroz
2026-01-09 17:06:54 +00:00
committed by GitHub
parent 66bca383bd
commit 499d3a8d50
+1 -1
View File
@@ -886,7 +886,7 @@ class TestInterpreterPrepareMain(TestBase):
with self.assertRaisesRegex(InterpreterError, 'unrecognized'):
interp.prepare_main({'spam': True})
with self.assertRaisesRegex(ExecutionFailed, 'NameError'):
self.run_from_capi(interpid, 'assert spam is True')
self.run_from_capi(interpid, 'spam')
class TestInterpreterExec(TestBase):