@pytest.fixture(scope=u'function')
def remove_test_dir(request):
 def fin_remove_test_dir():
  if os.path.exists(u'test_copy_without_render'):
   utils.rmtree(u'test_copy_without_render')
 request.addfinalizer(fin_remove_test_dir)

@ pytest . fixture ( scope = u'function' ) def remove_test_dir ( request ) : def fin_remove_test_dir ( ) : if os . path . exists ( u'test_copy_without_render' ) : utils . rmtree ( u'test_copy_without_render' ) request . addfinalizer ( fin_remove_test_dir )
remove the folder that is created by the test .