-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make tests 168,2043 work for any LC_TIME #4719
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4719 +/- ##
=======================================
Coverage 99.44% 99.44%
=======================================
Files 73 73
Lines 14539 14539
=======================================
Hits 14458 14458
Misses 81 81 Continue to review full report at Codecov.
|
LGTM thanks! |
great thanks! @mattdowle would you consider merging please? |
hi Toby, any particular reason to prioritize?
As you can see we've got ourselves a bit of a PR backlog at the moment
…On Sat, Sep 26, 2020, 2:15 AM Toby Dylan Hocking ***@***.***> wrote:
great thanks! @mattdowle <https://github.com/mattdowle> would you
consider merging please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4719 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2BA5NGCENXIPHTTIWVFGTSHWBJHANCNFSM4R2QRIYA>
.
|
haha no rush |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Had a look. It just needs a short news item (notes section), and the ", #3450" adding on these lines please.
As it happens, since CRAN is in error status and this release is pressing, the timing is good at the moment for any quick and easy PRs (like this one) to be prioritized to get them out of the way in 1.13.2. Most of the PRs currently scheduled for next release (milestone 1.13.1) will probably get bumped to 1.13.3 milestone. |
hi @mattdowle thanks for the quick review. here are the issue/PR mentions, is that OK? |
Thanks @tdhock. News items have developed a silent standard we should probably write down. We just reference the issue and not the PR too, because the issue itself links to the PR. That keeps the news item briefer, but also 1 link rather than 2 helps the CRAN check times because CRAN checks that every link in NEWS.md works and that can take over 20 mins. Also the name of the user-visible function affected should be present, in this case |
|
great thanks for the info |
Closes #3450
hi @jangorecki @shrektan @2005m @MichaelChirico this is a fix for #3450 which you commented on.
The problem in that issue is that some of the computed values depend on the LC_TIME locale value, whereas the expected values in the test are always English/C locale (Jan/NOV).
On my system (ubuntu 18.04) I have the following locales, the important one is
LC_TIME=fr_FR.UTF-8
with current master I get
After applying the commit in this PR I get
I could have fixed this by just setting LC_TIME=C during the tests, but I figured it would be better to not alter the environment. So instead I just changed the expected values so that they are generated based on the current locale (e.g. "janv." and "nov." instead of "Jan" and "NOV"). Is this approach ok?