Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix tests when run under non English locales: #554
Conversation
- days_in_month: As N_DAYS_IN_MONTHS has English month names, month() needs to be called with an English locale (the "C" locale is English and always available) - wday test: The wday in the test is compared with the English week day, so needs to be in English - "month accessor extracts correct month": Comparison with English month names, needs C locale as well
|
Thanks! |
The testsuite was failing on a computer with a non-English default locale. This PR fixes the tests so they work well under any locale.
days_in_month: As N_DAYS_IN_MONTHS has English month names, month() needs to be called with an English locale (the "C" locale is English and always available)
wday test: The wday in the test is compared with the English week day, so needs to be in English
"month accessor extracts correct month": Comparison with English month names, needs C locale as well