Skip to content

Commit

Permalink
Merge pull request #4083 from radarhere/locale
Browse files Browse the repository at this point in the history
Cleanup by resetting locale
  • Loading branch information
hugovk committed Sep 24, 2019
2 parents e17f728 + 7d502dd commit 1608a15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/test_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ def test_sanity(self):
locale.setlocale(locale.LC_ALL, "polish")
except locale.Error:
unittest.skip("Polish locale not available")
Image.open(path)

try:
Image.open(path)
finally:
locale.setlocale(locale.LC_ALL, (None, None))

0 comments on commit 1608a15

Please sign in to comment.