Author: Armin Rigo <[email protected]>
Branch: py3.5-fstring-pep498
Changeset: r89701:75a8124d1219
Date: 2017-01-23 00:07 +0100
http://bitbucket.org/pypy/pypy/changeset/75a8124d1219/
Log: more tests
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
@@ -1168,6 +1168,8 @@
yield self.st, """z = f'}}'""", 'z', '}'
yield self.st, """z = f'x{{y'""", 'z', 'x{y'
yield self.st, """z = f'x}}y'""", 'z', 'x}y'
+ yield self.st, """z = f'{{{4*10}}}'""", 'z', '{40}'
+ yield self.st, r"""z = fr'x={4*10}\n'""", 'z', 'x=40\\n'
yield self.st, """x = 'hi'; z = f'{x}'""", 'z', 'hi'
yield self.st, """x = 'hi'; z = f'{x!s}'""", 'z', 'hi'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit