https://github.com/python/cpython/commit/499d3a8d50561d03b67cb23f8ea28c1ab2c0b967
commit: 499d3a8d50561d03b67cb23f8ea28c1ab2c0b967
branch: main
author: Semyon Moroz <[email protected]>
committer: encukou <[email protected]>
date: 2026-01-09T18:06:54+01:00
summary:
gh-136438: Make sure `test_interpreters` pass with all optimization levels
(GH-136499)
files:
M Lib/test/test_interpreters/test_api.py
diff --git a/Lib/test/test_interpreters/test_api.py
b/Lib/test/test_interpreters/test_api.py
index fd9e46bf335fad..13d23af5aceb47 100644
--- a/Lib/test/test_interpreters/test_api.py
+++ b/Lib/test/test_interpreters/test_api.py
@@ -886,7 +886,7 @@ def test_created_with_capi(self):
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):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]