We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0344a2c commit 0806a80Copy full SHA for 0806a80
1 file changed
python/pyarrow/tests/test_array.py
@@ -24,6 +24,7 @@
24
import pickle
25
import pytest
26
import struct
27
+import subprocess
28
import sys
29
import weakref
30
@@ -38,7 +39,17 @@
38
39
40
41
def test_total_bytes_allocated():
42
+ code = f"""if 1:
43
+ import pyarrow as pa
44
+
45
assert pa.total_allocated_bytes() == 0
46
+ """
47
+ res = subprocess.run([sys.executable, "-c", code],
48
+ universal_newlines=True, stderr=subprocess.PIPE)
49
+ if res.returncode != 0:
50
+ print(res.stderr, file=sys.stderr)
51
+ res.check_returncode() # fail
52
+ assert len(res.stderr.splitlines()) == 0
53
54
55
def test_weakref():
0 commit comments