def set_unittest_reportflags(flags):
 global _unittest_reportflags
 if ((flags & REPORTING_FLAGS) != flags):
  raise ValueError('Only reporting flags allowed', flags)
 old = _unittest_reportflags
 _unittest_reportflags = flags
 return old

def set_unittest_reportflags ( flags ) : global _unittest_reportflags if ( ( flags & REPORTING_FLAGS ) != flags ) : raise ValueError ( 'Only reporting flags allowed' , flags ) old = _unittest_reportflags _unittest_reportflags = flags return old
sets the unittest option flags .