Cleanup by resetting locale

This commit is contained in:
Andrew Murray 2019-09-23 20:26:34 +10:00
parent 79a9981a63
commit 7d502dd410

View File

@ -31,4 +31,8 @@ class TestLocale(PillowTestCase):
locale.setlocale(locale.LC_ALL, "polish")
except locale.Error:
unittest.skip("Polish locale not available")
try:
Image.open(path)
finally:
locale.setlocale(locale.LC_ALL, (None, None))