Skip to content

Commit a0f4dfa

Browse files
donbarbosreidenong
authored andcommitted
pythongh-136438: Make sure test_interpreters pass with all optimization levels (pythonGH-136499)
1 parent d563628 commit a0f4dfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_interpreters/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ def test_created_with_capi(self):
886886
with self.assertRaisesRegex(InterpreterError, 'unrecognized'):
887887
interp.prepare_main({'spam': True})
888888
with self.assertRaisesRegex(ExecutionFailed, 'NameError'):
889-
self.run_from_capi(interpid, 'assert spam is True')
889+
self.run_from_capi(interpid, 'spam')
890890

891891

892892
class TestInterpreterExec(TestBase):

0 commit comments

Comments
 (0)