summaryrefslogtreecommitdiff
path: root/tests/test_plural.py
diff options
context:
space:
mode:
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)