Skip to content

Commit 8d468f9

Browse files
committed
Merge pull request matplotlib#2368 from mdboom/test/set-locale
Set locale for tests
2 parents f8263c2 + 7578ac4 commit 8d468f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99

1010
def setup():
11+
# The baseline images are created in this locale, so we should use
12+
# it during all of the tests.
13+
import locale
14+
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
15+
1116
use('Agg', warn=False) # use Agg backend for these tests
1217

1318
# These settings *must* be hardcoded for running the comparison

0 commit comments

Comments
 (0)