Skip to content

Commit 7ce5398

Browse files
Change localisation test error message
I found a message that is present in exiv2 '0.28.x' and 'main' repo branches. (See Exiv2/exiv2#3285 for context.)
1 parent ee9c215 commit 7ce5398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ def test_localisation(self):
149149
self.assertEqual(cm.output, [
150150
'WARNING:exiv2:Ungültiger Zeichensatz: "invalid"'])
151151
with self.assertRaises(exiv2.Exiv2Error) as cm:
152-
key = exiv2.ExifKey('not.a.tag')
152+
key = exiv2.ExifKey(999, 'Invalid')
153153
self.assertEqual(cm.exception.message.replace('"', "'"),
154-
"Ungültiger Schlüssel 'not.a.tag'")
154+
"Ungültige IFD-ID 0")
155155
# clear locale
156156
name = 'en_US.UTF-8'
157157
os.environ['LC_ALL'] = name

0 commit comments

Comments
 (0)