#11963: fix Windows buildbots.
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index bbb9436..65a762c 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -596,7 +596,8 @@
rc, out, err = assert_python_failure('-c', e)
# parsing the expression will result in an error message
# followed by a MemoryError (see #11963)
- self.assertEqual(err, b's_push: parser stack overflow\nMemoryError')
+ self.assertIn(b's_push: parser stack overflow', err)
+ self.assertIn(b'MemoryError', err)
class STObjectTestCase(unittest.TestCase):
"""Test operations on ST objects themselves"""