diff options
author | mattip <matti.picus@gmail.com> | 2021-10-03 10:16:49 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2021-10-03 10:16:49 +0300 |
commit | 382befec16270beb0b8de3ee15f411d231dbc9ec (patch) | |
tree | e6f8f557d891f775c8eb260df8173f3fddc1b01b /numpy/testing/_private/utils.py | |
parent | 161ac32de7239e3bf3dae1b4cf66d76386ce5aa8 (diff) | |
download | numpy-382befec16270beb0b8de3ee15f411d231dbc9ec.tar.gz |
add another call to gc.collect in break_cycles
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r-- | numpy/testing/_private/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 77ca4ef85..3d52f74b2 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -2402,9 +2402,9 @@ def break_cycles(): gc.collect() if IS_PYPY: - # interpreter runs now, to call deleted objects' __del__ methods + # a few more, just to make sure all the finalizers are called + gc.collect() gc.collect() - # two more, just to make sure gc.collect() gc.collect() |