[pypy-commit] pypy py3.5: even better example

arigo pypy.commits at gmail.com
Wed Jan 25 04:50:24 EST 2017


Author: Armin Rigo <arigo at tunes.org>
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.


More information about the pypy-commit mailing list