summaryrefslogtreecommitdiff
path: root/numpy/testing/_private/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r--numpy/testing/_private/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index 1f7b516b3..3ace84415 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -2245,6 +2245,7 @@ def _assert_no_gc_cycles_context(name=None):
# not meaningful to test if there is no refcounting
if not HAS_REFCOUNT:
+ yield
return
assert_(gc.isenabled())