This commit is contained in:
Kovid Goyal 2013-09-19 09:44:00 +05:30
parent 5d09bc1f79
commit 8ce8d331b6

View File

@ -286,7 +286,8 @@ def test_mem():
for i in xrange(calls): for i in xrange(calls):
subset(raw, (), (('a', 'z'),)) subset(raw, (), (('a', 'z'),))
del raw del raw
for i in xrange(3): gc.collect() for i in xrange(3):
gc.collect()
print ('Leaked memory per call:', (memory() - start_mem)/calls*1024, 'KB') print ('Leaked memory per call:', (memory() - start_mem)/calls*1024, 'KB')
def test(): def test():