From: Semyon Moroz Date: Fri, 9 Jan 2026 17:06:54 +0000 (+0000) Subject: gh-136438: Make sure `test_interpreters` pass with all optimization levels (GH-136499) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=499d3a8d50561d03b67cb23f8ea28c1ab2c0b967;p=thirdparty%2FPython%2Fcpython.git gh-136438: Make sure `test_interpreters` pass with all optimization levels (GH-136499) --- diff --git a/Lib/test/test_interpreters/test_api.py b/Lib/test/test_interpreters/test_api.py index fd9e46bf335f..13d23af5aceb 100644 --- a/Lib/test/test_interpreters/test_api.py +++ b/Lib/test/test_interpreters/test_api.py @@ -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):