From a579720005cbaab17a19a47d239623a95e2036ce Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 2 Nov 2022 09:38:38 +0200 Subject: Replace %/.format/concatenation with f-strings where feasible Original conversion suggestions via flynt, edited by hand. --- tests/test_plural.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_plural.py') 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) -- cgit v1.2.1