@pytest.fixture(scope=u'function')
def remove_additional_folders(request):
 def fin_remove_additional_folders():
  if os.path.exists(u'inputpizz\xe4'):
   utils.rmtree(u'inputpizz\xe4')
  if os.path.exists(u'inputgreen'):
   utils.rmtree(u'inputgreen')
  if os.path.exists(u'inputbinary_files'):
   utils.rmtree(u'inputbinary_files')
  if os.path.exists(u'tests/custom_output_dir'):
   utils.rmtree(u'tests/custom_output_dir')
  if os.path.exists(u'inputpermissions'):
   utils.rmtree(u'inputpermissions')
 request.addfinalizer(fin_remove_additional_folders)

@ pytest . fixture ( scope = u'function' ) def remove_additional_folders ( request ) : def fin_remove_additional_folders ( ) : if os . path . exists ( u'inputpizz\xe4' ) : utils . rmtree ( u'inputpizz\xe4' ) if os . path . exists ( u'inputgreen' ) : utils . rmtree ( u'inputgreen' ) if os . path . exists ( u'inputbinary_files' ) : utils . rmtree ( u'inputbinary_files' ) if os . path . exists ( u'tests/custom_output_dir' ) : utils . rmtree ( u'tests/custom_output_dir' ) if os . path . exists ( u'inputpermissions' ) : utils . rmtree ( u'inputpermissions' ) request . addfinalizer ( fin_remove_additional_folders )
remove some special folders which are created by the tests .