Skip to content

Commit c0889b8

Browse files
committed
Be explicit in the number of references
1 parent 4200dfd commit c0889b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/ndarray/test_resize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def test_expand_dims(shape, axis, chunks, blocks, fill_value):
6666

6767
arr = np.arange(4)
6868
bloscarr_ = blosc2.asarray(arr)
69-
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) # = 2
69+
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) == 2
7070

7171
view = np.expand_dims(arr, 0)
7272
bloscview = blosc2.expand_dims(bloscarr_, 0)
73-
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) # = 3
73+
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) == 3
7474

7575
del view
7676
del bloscview
77-
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) # = 2
77+
assert sys.getrefcount(arr) == sys.getrefcount(bloscarr_) == 2

0 commit comments

Comments
 (0)