Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TST Remove all but one py3 unit tests warning

  • Loading branch information...
commit 251cd81d0216f16ecdd9654f523cd8aed9301619 1 parent 2b3c1ad
@kwgoodman authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 la/util/testing.py
View
8 la/util/testing.py
@@ -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.
Something went wrong with that request. Please try again.