Skip to content

Commit 549e12c

Browse files
committed
minor test improvements
1 parent 3e709a8 commit 549e12c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_memleak.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def test_i8():
2222
if a.owner is not last:
2323
buffs[(3,j)] = last = a.owner
2424

25+
del a[1000:2000]
26+
2527
buffs[4] = deepcopy(a[:]).owner
2628
buffs[5] = (a + b).owner
2729
c = typedlist(np.array([1,2,3], dtype='i8'), dtype='l')
@@ -49,9 +51,11 @@ def test_uvec3():
4951
if a.owner is not last:
5052
buffs[(3,j)] = last = a.owner
5153

54+
del a[1000:2000]
55+
5256
buffs[4] = deepcopy(a[:]).owner
5357
buffs[5] = (a + b).owner
54-
c = typedlist(np.array([1,2,3], dtype='i8'), dtype='l')
58+
c = typedlist(np.array([1,2,3,4], dtype='i8'), dtype='l')
5559
buffs[6] = c.owner
5660
buffs[7] = (a + c).owner
5761
c.extend(a)

0 commit comments

Comments
 (0)