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
11 changes: 11 additions & 0 deletions python/pyarrow/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import pickle
import pytest
import struct
import subprocess
import sys
import weakref

Expand All @@ -38,7 +39,17 @@


def test_total_bytes_allocated():
code = """if 1:
import pyarrow as pa

assert pa.total_allocated_bytes() == 0
"""
res = subprocess.run([sys.executable, "-c", code],
universal_newlines=True, stderr=subprocess.PIPE)
if res.returncode != 0:
print(res.stderr, file=sys.stderr)
res.check_returncode() # fail
assert len(res.stderr.splitlines()) == 0


def test_weakref():
Expand Down