diff --git a/tests/test_grammar.py b/tests/test_grammar.py index 1a52f3ee6..0b28345c6 100644 --- a/tests/test_grammar.py +++ b/tests/test_grammar.py @@ -121,7 +121,7 @@ ("str_ws_1", "hello world", "hello world"), ("str_ws_2", "a b\tc \t\t d", "a b\tc \t\t d"), ("str_esc_ws_1", r"\ hello\ world\ ", " hello world "), - ("str_esc_ws_2", fr"\ \{TAB}\{TAB}", f" {TAB}{TAB}"), + ("str_esc_ws_2", rf"\ \{TAB}\{TAB}", f" {TAB}{TAB}"), ("str_esc_comma", r"hello\, world", "hello, world"), ("str_esc_colon", r"a\:b", "a:b"), ("str_esc_equal", r"a\=b", "a=b"), @@ -186,9 +186,9 @@ ), ( "dict_unquoted_key", - fr"{{a0-null-1-3.14-NaN- {TAB}-true-False-{UNQUOTED_SPECIAL}\(\)\[\]\{{\}}\:\=\ \{TAB}\,:0}}", + rf"{{a0-null-1-3.14-NaN- {TAB}-true-False-{UNQUOTED_SPECIAL}\(\)\[\]\{{\}}\:\=\ \{TAB}\,:0}}", { - fr"a0-null-1-3.14-NaN- {TAB}-true-False-{UNQUOTED_SPECIAL}()[]{{}}:= {TAB},": 0 + rf"a0-null-1-3.14-NaN- {TAB}-true-False-{UNQUOTED_SPECIAL}()[]{{}}:= {TAB},": 0 }, ), (