| commit | f27ee318d2388b6e19ddc3e5281b5f09e261bcaf | [log] [tgz] |
|---|---|---|
| author | Anthony Sottile <asottile@umich.edu> | Sat Oct 07 13:50:33 2023 -0400 |
| committer | Anthony Sottile <asottile@umich.edu> | Sat Oct 07 13:50:33 2023 -0400 |
| tree | ef5e01941a1a607cdcfb9a8dd2636883fa90fc97 | |
| parent | 6cad77080c8f1d1cf8b72ec4df8eb5a56db853ee [diff] [blame] |
don't rewrite string quotes inside f-strings
diff --git a/tests/string_fixer_test.py b/tests/string_fixer_test.py index 9dd7315..8eb164c 100644 --- a/tests/string_fixer_test.py +++ b/tests/string_fixer_test.py
@@ -37,6 +37,12 @@ 1, ), ('"foo""bar"', "'foo''bar'", 1), + pytest.param( + "f'hello{\"world\"}'", + "f'hello{\"world\"}'", + 0, + id='ignore nested fstrings', + ), )