diff options
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() |