Skip to content

Commit

Permalink
Fix tests with recent Python
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax authored and neheb committed Oct 18, 2023
1 parent a38ec20 commit 2865a31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tiff_test/test_tag_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def parse_pa(self, stdout):
tmp = line.split()

exif, image, tag = tmp[0].split('.')
self.assertEquals(exif, "Exif")
self.assertEquals(image, "Image")
self.assertEqual(exif, "Exif")
self.assertEqual(image, "Image")

data.append({
"tag": tag,
Expand Down Expand Up @@ -87,13 +87,13 @@ def compare_pS_pa(self):
"""
for pa_elem, pS_elem in zip(self.pa_data, self.pS_data):
for key in ["tag", "type", "len"]:
self.assertEquals(pa_elem[key], pS_elem[key])
self.assertEqual(pa_elem[key], pS_elem[key])

if pa_elem["tag"] in [
"ImageWidth", "ImageLength", "BitsPerSample",
"DocumentName", "ImageDescription", "StripOffsets",
"SamplesPerPixel", "StripByteCounts"]:
self.assertEquals(pa_elem["val"], pS_elem["val"])
self.assertEqual(pa_elem["val"], pS_elem["val"])

def compare_stdout(self, i, command, got_stdout, expected_stdout):
super().compare_stdout(i, command, got_stdout, expected_stdout)
Expand Down

0 comments on commit 2865a31

Please sign in to comment.