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_core.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_core.py')
-rw-r--r-- | tests/test_core.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 2de79e2..605bf5c 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -309,8 +309,7 @@ def test_compatible_classes_in_global_and_localedata(filename): # *.dat files must have compatible classes between Python 2 and 3 if module.split('.')[0] == 'babel': return pickle.Unpickler.find_class(self, module, name) - raise pickle.UnpicklingError("global '%s.%s' is forbidden" % - (module, name)) + raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden") with open(filename, 'rb') as f: assert Unpickler(f).load() |