From 8c4ba575fdd7730e71b339643f51ffadefbedb76 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 26 Aug 2021 23:27:46 +1000 Subject: 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 --- tests/basics/string_fstring.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/basics/string_fstring.py') diff --git a/tests/basics/string_fstring.py b/tests/basics/string_fstring.py index efb7e5a8e..4f7225fca 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}' -- cgit v1.2.3