def test_gc_custom(): gc.free_resources() f = open(os.path.join("tests", "fixtures", "bug_01.csv"), "r") gc.append(f) eq_(len(gc.GARBAGE), 1) gc.free_resources() assert len(gc.GARBAGE) == 0
def _free_me_up_later(self, reader): gc.append(reader)
def test_gc_custom(): gc.free_resources() f = open(os.path.join("tests", "fixtures", "bug_01.csv"), "r") gc.append(f) eq_(len(gc.GARBAGE), 1) gc.free_resources() assert len(gc.GARBAGE) == 0
def _free_me_up_later(self, reader): gc.append(reader)