mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Merge pull request #4083 from radarhere/locale
Cleanup by resetting locale
This commit is contained in:
commit
1608a15ab5
|
@ -31,4 +31,8 @@ class TestLocale(PillowTestCase):
|
||||||
locale.setlocale(locale.LC_ALL, "polish")
|
locale.setlocale(locale.LC_ALL, "polish")
|
||||||
except locale.Error:
|
except locale.Error:
|
||||||
unittest.skip("Polish locale not available")
|
unittest.skip("Polish locale not available")
|
||||||
Image.open(path)
|
|
||||||
|
try:
|
||||||
|
Image.open(path)
|
||||||
|
finally:
|
||||||
|
locale.setlocale(locale.LC_ALL, (None, None))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user