Skip to content

Commit

Permalink
minor test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jimy-byerley committed Nov 12, 2022
1 parent 3e709a8 commit 549e12c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_memleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def test_i8():
if a.owner is not last:
buffs[(3,j)] = last = a.owner

del a[1000:2000]

buffs[4] = deepcopy(a[:]).owner
buffs[5] = (a + b).owner
c = typedlist(np.array([1,2,3], dtype='i8'), dtype='l')
Expand Down Expand Up @@ -49,9 +51,11 @@ def test_uvec3():
if a.owner is not last:
buffs[(3,j)] = last = a.owner

del a[1000:2000]

buffs[4] = deepcopy(a[:]).owner
buffs[5] = (a + b).owner
c = typedlist(np.array([1,2,3], dtype='i8'), dtype='l')
c = typedlist(np.array([1,2,3,4], dtype='i8'), dtype='l')
buffs[6] = c.owner
buffs[7] = (a + c).owner
c.extend(a)
Expand Down

0 comments on commit 549e12c

Please sign in to comment.