-
Notifications
You must be signed in to change notification settings - Fork 666
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
unit test failure on command line #366
Comments
That looks like it's issue #310 not working, which is strange. On 3:51PM, Sat, 25 Jul 2015 Tyler Reddy [email protected] wrote:
|
I just did a parallel test on Max OS X 10.6.8 as
and got 10 failures in test_timestep_api.py whereas travis-ci does not flag any of them (note: serial testing gives the same failures):
|
They're all the Does something like this work? import numpy as np
from MDAnalysis.coordinates.base import Timestep
a = Timestep(10)
b = Timestep(10)
a.positions = np.arange(30).reshape(10, 3)
b.positions = np.arange(30).reshape(10, 3)
assert a == b |
That code block works just fine for me Richard. |
I'm currently traveling so I won't be able to test this immediately. Am Jul 26, 2015 um 2:06 schrieb Richard Gowers [email protected]:
|
Hi @richardjgowers , Yes, the code snippet below works (a == b evaluates to True). Oliver On 26 Jul, 2015, at 03:06, Richard Gowers wrote:
|
So that's confusing because the first test that failed for you is basically the code snippet. Maybe it's a nose version issue? The test (line 729 of test_timestep_api) is currently @tylerjereddy |
With the changes #assert_equal(ts1, ts2)
assert_equal(ts1 == ts2, True)
#assert_equal(ts2, ts1)
assert_equal(ts2 == ts1, True) the test passes. Or I can use def _check_ts(self, a, b, err_msg):
assert_(a == b, err_msg)
assert_(b == a, err_msg) Not sure what to make of this. I am using nosetests version 1.3.7 on Mac OS X 10.6.8. |
Maybe a mac specific bug? Easiest thing is just to add the fixes you've found. |
- replaced assert_equal(ts1, ts2) with assert_(ts1 == ts2) and also assert_not_equal() with assert_( != ) - fixes #366 - tests in test_timestep_api.TestTimestepEquality failed on Mac OS X 10.6.8 python 2.7, numpy 1.8.1, nose 1.3.7 but passed in Travis CI and Linux; the fix makes them pass everywhere
For commit:
ce8657d
Passes on travis but fails on Mac OS X command line when run from path
mdanalysis/testsuite/MDAnalysisTests
:nosetests --processes=8 --process-timeout=120
final report:
Sample failure snippet:
Can anyone reproduce this on a mac with the latest development branch? There were a lot of recent changes to unit testing framework, but my impression is that they were done quite carefully to avoid inhibiting the usual command line behaviour.
The text was updated successfully, but these errors were encountered: