Permalink
Browse files

TST Remove all but one py3 unit tests warning

  • Loading branch information...
1 parent 2b3c1ad commit 251cd81d0216f16ecdd9654f523cd8aed9301619 @kwgoodman committed Mar 21, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 la/util/testing.py
View
@@ -126,7 +126,13 @@ def heading(text):
# Both actual and desired are scalars
try:
- assert_almost_equal(actual, desired)
+ try:
+ assert_equal(actual, desired)
+ except:
+ # The following line gives a warning in py3/nose
+ # when the inputs are np.bool_. That's why we try
+ # assert_equal first (above)
+ assert_almost_equal(actual, desired)
except AssertionError as err:
fail.append(heading('SCALARS') + str(err))
if dtype:

0 comments on commit 251cd81

Please sign in to comment.