]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136438: Make sure `test_interpreters` pass with all optimization levels (GH-136499)
authorSemyon Moroz <donbarbos@proton.me>
Fri, 9 Jan 2026 17:06:54 +0000 (17:06 +0000)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 17:06:54 +0000 (18:06 +0100)
Lib/test/test_interpreters/test_api.py

index fd9e46bf335fad25540a67ae6fbab2c3566a3af7..13d23af5aceb4754a5f2096e829455070d41a074 100644 (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):