if os.path.isdir(recipy_dir):
shutil.rmtree(recipy_dir)
os.mkdir(recipy_dir)
self.test_files = []
def teardown_method(self, method):
py.test-compliant teardown function, run after each test method,
After Change
shutil.rmtree(recipy_dir)
os.mkdir(recipy_dir)
for recipyrc_file in [".recipyrc", "recipyrc"]:
path = os.path.join(os.getcwd(), recipyrc_file)
if os.path.isfile(path):
os.remove(path)
def teardown_method(self, method):