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/test_plural.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/test_plural.py')
-rw-r--r-- | tests/test_plural.py | 2 |
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) |