Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/pyarrow/tests/test_dlpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import ctypes
from functools import wraps
import gc
import pytest

try:
Expand Down Expand Up @@ -50,6 +51,7 @@ def check_dlpack_export(arr, expected_arr):
def check_bytes_allocated(f):
@wraps(f)
def wrapper(*args, **kwargs):
gc.collect()
allocated_bytes = pa.total_allocated_bytes()
try:
return f(*args, **kwargs)
Expand Down