summaryrefslogtreecommitdiff
path: root/tests/test_plural.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/test_plural.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/test_plural.py')
-rw-r--r--tests/test_plural.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_plural.py b/tests/test_plural.py
index 4210033..16601cf 100644
--- a/tests/test_plural.py
+++ b/tests/test_plural.py
@@ -273,7 +273,7 @@ def test_gettext_compilation(locale):
chars = 'ivwft'
# Test that these rules are valid for this test; i.e. that they contain at least one
# of the gettext-unsupported characters.
- assert any((" " + ch + " ") in rule for ch in chars for rule in ru_rules.values())
+ assert any(f" {ch} " in rule for ch in chars for rule in ru_rules.values())
# Then test that the generated value indeed does not contain these.
ru_rules_gettext = plural.to_gettext(ru_rules)
assert not any(ch in ru_rules_gettext for ch in chars)