Skip to content

Commit

Permalink
Only call exvGettext after changing locale
Browse files Browse the repository at this point in the history
It's possible the previous result is being cached somewhere.
  • Loading branch information
jim-easterbrook committed Dec 27, 2023
1 parent 2c93558 commit cbbba72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_localisation(self):
old_locale = locale.setlocale(locale.LC_MESSAGES, None)
# clear current locale
locale.setlocale(locale.LC_MESSAGES, 'C')
self.assertEqual(exiv2.exvGettext(str_en), str_en)
## self.assertEqual(exiv2.exvGettext(str_en), str_en)
# set German locale
for name in ('de_DE.utf8', 'de_DE.UTF-8', 'de_DE', 'German'):
try:
Expand Down

0 comments on commit cbbba72

Please sign in to comment.