Skip to content

Commit 4c5d808

Browse files
committed
Merge pull request #5183 from cgohlke/patch-13
TST: fix `AttributeError: 'module' object has no attribute 'nl_langinfo'` on Windows
2 parents 1242463 + 21f6bde commit 4c5d808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)