diff options
author | Aarni Koskela <akx@iki.fi> | 2022-11-02 09:38:38 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2022-11-04 17:26:01 +0200 |
commit | a579720005cbaab17a19a47d239623a95e2036ce (patch) | |
tree | cb3a15033c9256ef6d860a3385c0852939fec7d0 /tests/messages/test_pofile.py | |
parent | 5fcc2535f96bfce9c1a1ecf9d19a976b9bf6ab6b (diff) | |
download | babel-f-strings.tar.gz |
Replace %/.format/concatenation with f-strings where feasiblef-strings
Original conversion suggestions via flynt, edited by hand.
Diffstat (limited to 'tests/messages/test_pofile.py')
-rw-r--r-- | tests/messages/test_pofile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/messages/test_pofile.py b/tests/messages/test_pofile.py index 99e59ba..a72368b 100644 --- a/tests/messages/test_pofile.py +++ b/tests/messages/test_pofile.py @@ -859,7 +859,7 @@ class PofileFunctionsTestCase(unittest.TestCase): expected_denormalized = u'multi-line\n translation' assert expected_denormalized == pofile.denormalize(msgstr) - assert expected_denormalized == pofile.denormalize('""\n' + msgstr) + assert expected_denormalized == pofile.denormalize(f'""\n{msgstr}') def test_unknown_language_roundtrip(): |