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_core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_core.py') 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() -- cgit v1.2.1