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

Skip to content

Commit 2ac4536

Browse files
mdboomtacaswell
authored andcommitted
Merge pull request #5183 from cgohlke/patch-13
TST: fix `AttributeError: 'module' object has no attribute 'nl_langinfo'` on Windows
1 parent bdb6164 commit 2ac4536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_strftime_fields(dt):
199199
expanded_formatter = mdates.DateFormatter(locale_d_fmt)
200200
assert_equal(locale_formatter.strftime(dt),
201201
expanded_formatter.strftime(dt))
202-
except ImportError:
202+
except (ImportError, AttributeError):
203203
pass
204204

205205
for year in range(1, 3000, 71):

0 commit comments

Comments
 (0)