

def tearDown(self):
    actions = []
    for (dirpath, dirnames, filenames) in os.walk(self.pkgname):
        for name in (dirnames + filenames):
            actions.append(os.path.join(dirpath, name))
    actions.append(p.pkgname)
    actions.sort()
    actions.reverse()
    for p in actions:
        if os.path.isdir(p):
            os.rmdir(p)
        else:
            os.remove(p)
    del sys.path[0]

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_reprlib.py LongReprTest.tearDown/VarMisuse@68/73 `self`->`p`