/usr/lib/python2.7/dist-packages/dipy/testing/tests/test_memory.py is in python-dipy 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from nose.tools import assert_equal
from dipy.testing.memory import get_type_refcount
def test_get_type_refcount():
list_ref_count = get_type_refcount("list")
A = list()
assert_equal(get_type_refcount("list")["list"], list_ref_count["list"]+1)
del A
assert_equal(get_type_refcount("list")["list"], list_ref_count["list"])
|