Skip to content

Commit

Permalink
new raise test now only runs on multiple processes
Browse files Browse the repository at this point in the history
  • Loading branch information
coquelin77 committed Jul 20, 2021
1 parent bf39b25 commit 89fb977
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions heat/core/tests/test_dndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,10 +1333,11 @@ def test_setitem_getitem(self):
a[..., ...]
with self.assertRaises(ValueError):
a[..., ...] = 1
with self.assertRaises(ValueError):
x = ht.ones((10, 10), split=0)
setting = ht.zeros((8, 8), split=1)
x[1:-1, 1:-1] = setting
if a.comm.size > 1:
with self.assertRaises(ValueError):
x = ht.ones((10, 10), split=0)
setting = ht.zeros((8, 8), split=1)
x[1:-1, 1:-1] = setting

def test_size_gnumel(self):
a = ht.zeros((10, 10, 10), split=None)
Expand Down

0 comments on commit 89fb977

Please sign in to comment.