()
| 40 | |
| 41 | @pytest.mark.processes |
| 42 | def test_total_bytes_allocated(): |
| 43 | code = """if 1: |
| 44 | import pyarrow as pa |
| 45 | |
| 46 | assert pa.total_allocated_bytes() == 0 |
| 47 | """ |
| 48 | res = subprocess.run([sys.executable, "-c", code], |
| 49 | universal_newlines=True, stderr=subprocess.PIPE) |
| 50 | if res.returncode != 0: |
| 51 | print(res.stderr, file=sys.stderr) |
| 52 | res.check_returncode() # fail |
| 53 | assert len(res.stderr.splitlines()) == 0 |
| 54 | |
| 55 | |
| 56 | def test_weakref(): |
nothing calls this directly
no test coverage detected