summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_fstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_fstring.py')
-rw-r--r--tests/basics/string_fstring.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/basics/string_fstring.py b/tests/basics/string_fstring.py
index 1a3960680e..42d093b37b 100644
--- a/tests/basics/string_fstring.py
+++ b/tests/basics/string_fstring.py
@@ -29,21 +29,6 @@ print(f"a{[0,15,2][0:2][-1]:04x}")
# Nested '{' and '}' characters.
print(f"a{ {0,1,2}}")
-# PEP-0498 specifies that '\\' and '#' must be disallowed explicitly, whereas
-# MicroPython relies on the syntax error as a result of the substitution.
-
-print(f"\\")
-print(f'#')
-try:
- eval("f'{\}'")
-except SyntaxError:
- print('SyntaxError')
-try:
- eval("f'{#}'")
-except SyntaxError:
- print('SyntaxError')
-
-
# PEP-0498 specifies that handling of double braces '{{' or '}}' should
# behave like str.format.
print(f'{{}}')