Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7578ac4

Browse files
committed
Partially fix #2343: Forcibly set the locale to en_US.UTF-8 during tests so that the output will match the baseline images
1 parent ab829f2 commit 7578ac4

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)