def after_all(context):
 dbutils.close_cn(context.cn)
 dbutils.drop_db(context.conf[u'host'], context.conf[u'user'], context.conf[u'pass'], context.conf[u'dbname'])
 for (k, v) in context.pgenv.items():
  if ((k in os.environ) and (v is None)):
   del os.environ[k]
  elif v:
   os.environ[k] = v

def after_all ( context ) : dbutils . close_cn ( context . cn ) dbutils . drop_db ( context . conf [ u'host' ] , context . conf [ u'user' ] , context . conf [ u'pass' ] , context . conf [ u'dbname' ] ) for ( k , v ) in context . pgenv . items ( ) : if ( ( k in os . environ ) and ( v is None ) ) : del os . environ [ k ] elif v : os . environ [ k ] = v
unset env parameters .