Permalink
Browse files

REF all tests now pass with numpy 1.8

  • Loading branch information...
1 parent d6a99ef commit f19b62b726be663eaa06e4113c35583faf8b3418 @kwgoodman committed Oct 3, 2013
Showing with 5 additions and 8 deletions.
  1. +5 −8 la/tests/deflarry_test.py
View
@@ -999,11 +999,10 @@ def test_max_2(self):
def test_max_3(self):
"larry.max_3"
- x = np.array([1.0, 1.0])
+ x = np.array([1.0, 1.0, 1.0])
t = larry(x)
p = self.l.max(1)
- msg = printfail(t, p, '')
- self.assertTrue((p.x == t).all(), msg)
+ ale(p, t)
def test_max_4(self):
"larry.max_4"
@@ -1028,16 +1027,14 @@ def test_min_2(self):
x = np.array([1.0, 1.0])
t = larry(x)
p = self.l.min(0)
- msg = printfail(t, p, '')
- self.assertTrue((p == t).all(), msg)
+ ale(p, t)
def test_min_3(self):
"larry.min_3"
- x = np.array([1.0, 1.0])
+ x = np.array([1.0, 1.0, 1.0])
t = larry(x)
p = self.l.min(1)
- msg = printfail(t, p, '')
- self.assertTrue((p.x == t).all(), msg)
+ ale(p, t)
def test_min_4(self):
"larry.min_4"

0 comments on commit f19b62b

Please sign in to comment.