-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Relaxed utils.timer test assertions #766
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
Conversation
|
Thanks! I just pushed this to my staging branch to see if the tests pass on the Mac Jenkins instance now. |
|
Out of curiosity, isn't this equivalent to just setting |
|
Basically, the same kind of idea but not exactly (or at least I don't think so by looking at Numpy docs; feel free to correct me). The math for I am doing something like this: |
|
Ah, you're right, not the same then. Thanks for the clarification! And this looks fine to me. |
|
@astrofrog, if things look good on Mac Jenkins, feel free to merge when you are ready. |
|
There was a delay in running the staging branch. I'm busy all day tomorrow, but will check on Friday. |
|
@astrofrog , I don't think I am making anymore changes unless something else pops up. Rules are pretty relaxed now. Feel free to merge as you see fit. Thanks! |
|
This looks ready to merge to me, but I'll leave it to @astrofrog, as I'm not sure if it's been tested on the Jenkins Mac setup yet (I don't see it on shiningpanda, anyway). |
|
Sorry for the delay - I'll push this to my staging branch to see if there are any issues. |
|
I'm still seeing problems related to timer testing showing up in the Travis tests, e.g. https://travis-ci.org/astropy/astropy/builds/5259347. |
|
This looks like an older version of the code. |
|
Sorry, I wasn't totally clear: this is coming from astropy master, not this PR. It showed up after merging PR #829. So if this PR will fix the issue then all is OK. |
|
@taldcroft , this PR will change the assertion tests (which currently failed in master) to the following, which will most certainly pass unless timer is behaving very badly: |
|
The tests are passing on Jenkins OS X - merging! |
Relaxed utils.timer test assertions
Attempt to fix
utils.timertest having "random failures on MacOS X because the results are in some cases close to but not quite accurate to 3 decimal places". See also: #743