mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-136438: Make sure test_interpreters pass with all optimization levels (GH-136499)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user