summaryrefslogtreecommitdiff
path: root/tests/messages/test_pofile.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-11-02 09:38:38 +0200
committerAarni Koskela <akx@iki.fi>2022-11-04 17:26:01 +0200
commita579720005cbaab17a19a47d239623a95e2036ce (patch)
treecb3a15033c9256ef6d860a3385c0852939fec7d0 /tests/messages/test_pofile.py
parent5fcc2535f96bfce9c1a1ecf9d19a976b9bf6ab6b (diff)
downloadbabel-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.py2
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():