Skip to content

Commit

Permalink
tests/test_xmp: del unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Mar 20, 2024
1 parent 6acc311 commit 015715d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_xmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 015715d

Please sign in to comment.