From 015715d531cf73080537120c9a0e1a8fb79dee21 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 20 Mar 2024 17:36:46 +0100 Subject: [PATCH] tests/test_xmp: del unused variables. --- tests/test_xmp.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_xmp.py b/tests/test_xmp.py index 5b7a028..e859526 100644 --- a/tests/test_xmp.py +++ b/tests/test_xmp.py @@ -151,6 +151,7 @@ def test_empty(self): def _test_empty_exiv2(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception for line in run_exiv2(xmp_file.name, fail_ok=True): @@ -159,6 +160,7 @@ def test(*dummy): def _test_empty_libxmp(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception if libxmp is None: @@ -218,6 +220,7 @@ def test_new(self): def _test_new_exiv2(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception output = run_exiv2(xmp_file.name) @@ -270,6 +273,7 @@ def pop(): def _test_new_libxmp(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception if libxmp is None: @@ -328,6 +332,7 @@ def test_updated(self): def _test_updated_exiv2(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception output = run_exiv2(xmp_file.name) @@ -399,6 +404,7 @@ def pop(): def _test_updated_libxmp(self, xmp_file, exception=None): def test(*dummy): + del dummy if exception is not None: raise exception if libxmp is None: @@ -449,6 +455,7 @@ def get(namespace, key): def test_io_error(self): def t(*dummy): + del dummy image_path = os.path.join(os.path.dirname(__file__), 'data', 'nonexistent.png') meta = xmp.metadata(backend=backend) meta.import_(image_path)