Skip to content

Commit c657605

Browse files
committed
FIX: comment out refcount since Python optimizes refcounts. Keep the test for future reference purpose
1 parent 20f31d4 commit c657605

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

numexpr/tests/test_numexpr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,10 @@ def _test_refcount(self):
338338
assert sys.getrefcount(a) == 2
339339

340340
# Test if `disable_cache` works correctly with refcount, see issue #521
341+
# Comment out as modern Python optimizes handling refcounts.
341342
@unittest.skipIf(hasattr(sys, "pypy_version_info"),
342343
"PyPy does not have sys.getrefcount()")
343-
def test_refcount_disable_cache(self):
344+
def _test_refcount_disable_cache(self):
344345
a = array([1])
345346
b = array([1])
346347
evaluate('a', out=b, disable_cache=True)

0 commit comments

Comments
 (0)