summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_fstring.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-08-26 23:27:46 +1000
committerDamien George <damien@micropython.org>2021-08-26 23:56:02 +1000
commit8c4ba575fdd7730e71b339643f51ffadefbedb76 (patch)
tree1ada6627b806224e0c0105eff167e7c71b1d5d37 /tests/basics/string_fstring.py
parent145fedef8d74a504c4b7c000e6c305602d07feff (diff)
downloadmicropython-8c4ba575fdd7730e71b339643f51ffadefbedb76.tar.gz
micropython-8c4ba575fdd7730e71b339643f51ffadefbedb76.zip
tests/basics: Split f-string debug printing to separate file with .exp.
This feature {x=} was introduced in Python 3.8 so needs a separate .exp file to run on earlier Python versions. See https://bugs.python.org/issue36817 Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/string_fstring.py')
-rw-r--r--tests/basics/string_fstring.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/basics/string_fstring.py b/tests/basics/string_fstring.py
index efb7e5a8e1..4f7225fcad 100644
--- a/tests/basics/string_fstring.py
+++ b/tests/basics/string_fstring.py
@@ -12,17 +12,11 @@ print(f"""no interpolation""")
x, y = 1, 2
print(f'{x}')
print(f'{x:08x}')
-print(f'{x=}')
-print(f'{x=:08x}')
print(f'a {x} b {y} c')
print(f'a {x:08x} b {y} c')
-print(f'a {x=} b {y} c')
-print(f'a {x=:08x} b {y} c')
print(f'a {"hello"} b')
print(f'a {f() + g("foo") + h()} b')
-print(f'a {f() + g("foo") + h()=} b')
-print(f'a {f() + g("foo") + h()=:08x} b')
def foo(a, b):
return f'{x}{y}{a}{b}'