[pypy-commit] pypy py3.5-fstring-pep498: an extra case
arigo
pypy.commits at gmail.com
Mon Jan 23 14:33:15 EST 2017
Author: Armin Rigo <arigo at tunes.org>
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'{}'")
More information about the pypy-commit
mailing list