From 499d3a8d50561d03b67cb23f8ea28c1ab2c0b967 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Fri, 9 Jan 2026 17:06:54 +0000 Subject: [PATCH] gh-136438: Make sure `test_interpreters` pass with all optimization levels (GH-136499) --- Lib/test/test_interpreters/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.3