Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89759:92a9e374d458
Date: 2017-01-25 10:49 +0100
http://bitbucket.org/pypy/pypy/changeset/92a9e374d458/

Log:    even better example

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
@@ -545,10 +545,9 @@
         # parsing'.  Why doesn't it give 'invalid syntax'?  In fact:
         #   eval("fu''")     => unexpected EOF while parsing
         #   exec("fu''")     => invalid syntax
+        #   eval("fu'' ")    => invalid syntax
         #   eval("fu'xxx'")  => invalid syntax
-        #   exec("fu'xxx'")  => invalid syntax
         #   eval("fu''''''") => invalid syntax
-        #   exec("fu''''''") => invalid syntax
         # so CPython does give an 'invalid syntax' in all cases except
         # a very corner case, and it happens to be the one tested for
         # here in CPython's version of the test.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to