Skip to content

Commit

Permalink
Fix writable array in assert_array_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
hirschsn committed Apr 15, 2019
1 parent c546e1a commit dbeae30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/python/mpiio.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def check_sample_system(self):
for p, q in zip(self.s.part, self.test_particles):
self.assertEqual(p.id, q.id)
self.assertEqual(p.type, q.type)
numpy.testing.assert_array_equal(p.pos, q.pos)
numpy.testing.assert_array_equal(p.v, q.v)
numpy.testing.assert_array_equal(numpy.copy(p.pos), q.pos)
numpy.testing.assert_array_equal(numpy.copy(p.v), q.v)
self.assertEqual(len(p.bonds), len(q.bonds))
# Check all bonds
for bp, bq in zip(p.bonds, q.bonds):
Expand Down

0 comments on commit dbeae30

Please sign in to comment.