This commit is contained in:
Semyon Moroz 2025-12-23 14:13:17 +05:30 committed by GitHub
commit acd85f2d18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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):