Skip to content

Commit 3774945

Browse files
committed
tidy up tests
1 parent 80be178 commit 3774945

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

zarr/tests/test_sync.py

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,20 @@ def init_attributes(self, store, read_only=False):
5252

5353

5454
def _append(arg):
55-
try:
56-
z, i = arg
57-
import numpy as np
58-
x = np.empty(1000, dtype='i4')
59-
x[:] = i
60-
shape = z.append(x)
61-
return shape
62-
except Exception as e:
63-
traceback.print_exc(file=sys.stderr)
64-
raise
55+
z, i = arg
56+
import numpy as np
57+
x = np.empty(1000, dtype='i4')
58+
x[:] = i
59+
shape = z.append(x)
60+
return shape
6561

6662

6763
def _set_arange(arg):
68-
try:
69-
z, i = arg
70-
import numpy as np
71-
x = np.arange(i*1000, (i*1000)+1000, 1)
72-
z[i*1000:(i*1000)+1000] = x
73-
return i
74-
except Exception as e:
75-
traceback.print_exc(file=sys.stderr)
76-
raise
64+
z, i = arg
65+
import numpy as np
66+
x = np.arange(i*1000, (i*1000)+1000, 1)
67+
z[i*1000:(i*1000)+1000] = x
68+
return i
7769

7870

7971
class MixinArraySyncTests(object):

0 commit comments

Comments
 (0)