Skip to content

Commit

Permalink
fix(test_equations): use numpy.all, not numpy.alltrue
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaneed committed Sep 27, 2024
1 parent e33482e commit 7bbf1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysph/sph/tests/test_equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def test_basic_code_block(self):
self.assertEqual(ctx.s_idx, 0)
self.assertEqual(ctx.d_idx, 0)
x = numpy.zeros(2, dtype=float)
self.assertTrue(numpy.alltrue(ctx.d_x == x))
self.assertTrue(numpy.alltrue(ctx.s_x == x))
self.assertTrue(numpy.all(ctx.d_x == x))
self.assertTrue(numpy.all(ctx.s_x == x))

def test_that_code_block_is_callable(self):
code = '''
Expand Down

0 comments on commit 7bbf1ca

Please sign in to comment.