Commit b921c01f authored by Chris Toshok's avatar Chris Toshok

add a test. verified that it fails (with my current ulimit) without the destructor. succeeds with

parent f7a5c085
try:
import gc
have_gc = True
except e:
pass
def open_lots_of_files():
for x in range(0, 10000):
f = open("/dev/null")
if have_gc:
gc.collect();
open_lots_of_files()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment