Force gc to avoid non-deterministic failure

Change-Id: I164e7a554a2ac53e205eb67da9edc42f0ba4cc38
This commit is contained in:
Wes McKinney committed 2016-11-06 19:00:02 -05:00
1 parent d85228fac4
commit 99df96bdfe
1 file changed
+4
@@ -47,6 +47,10 @@ class TestConvertList(unittest.TestCase):
def test_garbage_collection(self):
import gc
# Force the cyclic garbage collector to run
gc.collect()
bytes_before = pyarrow.total_allocated_bytes()
pyarrow.from_pylist([1, None, 3, None])
gc.collect()