Author: Armin Rigo <[email protected]>
Branch: py3.5-fstring-pep498
Changeset: r89707:f4cdc59d88b9
Date: 2017-01-23 20:32 +0100
http://bitbucket.org/pypy/pypy/changeset/f4cdc59d88b9/

Log:    an extra case

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -1180,6 +1180,7 @@
 
         yield self.st, """x = 'hi'; z = f'{x:5}'""", 'z', 'hi   '
         yield self.st, """x = 42;   z = f'{x:5}'""", 'z', '   42'
+        yield self.st, """x = 2; z = f'{5:{x:+1}0}'""", 'z', (' ' * 18 + '+5')
 
     def test_fstring_error(self):
         raises(SyntaxError, self.run, "f'{}'")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to