Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6
Changeset: r94709:88d3192d1645
Date: 2018-05-29 13:43 +0200
http://bitbucket.org/pypy/pypy/changeset/88d3192d1645/
Log: differences in error message
diff --git a/lib-python/3/test/test_fstring.py
b/lib-python/3/test/test_fstring.py
--- a/lib-python/3/test/test_fstring.py
+++ b/lib-python/3/test/test_fstring.py
@@ -148,7 +148,7 @@
# Inside of strings, don't interpret doubled brackets.
self.assertEqual(f'{"{{}}"}', '{{}}')
- self.assertAllRaise(TypeError, 'unhashable type',
+ self.assertAllRaise(TypeError, 'unhashable',
["f'{ {{}} }'", # dict in a set
])
@@ -411,7 +411,7 @@
# lambda doesn't work without parens, because the colon
# makes the parser think it's a format_spec
- self.assertAllRaise(SyntaxError, 'unexpected EOF while parsing',
+ self.assertAllRaise(SyntaxError, '',
["f'{lambda x:x}'",
])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit