Skip to content

Commit

Permalink
Test localised exception with non-ASCII characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed Sep 18, 2024
1 parent 86aaac9 commit 0c42f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def test_localisation(self):
self.assertEqual(cm.output, [
'WARNING:exiv2:Ungültiger Zeichensatz: "invalid"'])
with self.assertRaises(exiv2.Exiv2Error) as cm:
image = exiv2.ImageFactory.open(bytes())
key = exiv2.ExifKey('not.a.tag')
self.assertEqual(cm.exception.message,
'Die Eingabedaten konnten nicht gelesen werden.')
"Ungültiger Schlüssel 'not.a.tag'")
# clear locale
name = 'en_US.UTF-8'
os.environ['LC_ALL'] = name
Expand Down

0 comments on commit 0c42f02

Please sign in to comment.