mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Force gc to avoid non-deterministic failure
Change-Id: I164e7a554a2ac53e205eb67da9edc42f0ba4cc38
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user