Merge pull request #4083 from radarhere/locale

Cleanup by resetting locale
This commit is contained in:
Hugo van Kemenade 2019-09-24 08:38:16 +03:00 committed by GitHub
commit 1608a15ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,4 +31,8 @@ class TestLocale(PillowTestCase):
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))