We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2dcc35 commit 439fba4Copy full SHA for 439fba4
1 file changed
tests/test_types.py
@@ -138,10 +138,9 @@ def test_localisation(self):
138
self.assertEqual(cm.output, [
139
'WARNING:exiv2:Ungültiger Zeichensatz: "invalid"'])
140
with self.assertRaises(exiv2.Exiv2Error) as cm:
141
- image = exiv2.ImageFactory.open('non-existing.jpg')
142
- self.assertEqual(cm.exception.message.split(':')[:2],
143
- ['non-existing.jpg',
144
- ' Die Datenquelle konnte nicht geöffnet werden'])
+ image = exiv2.ImageFactory.open(bytes())
+ self.assertEqual(cm.exception.message,
+ 'Die Eingabedaten konnten nicht gelesen werden.')
145
# clear locale
146
name = 'en_US.UTF-8'
147
os.environ['LC_ALL'] = name
0 commit comments