def usesFlushLoggedErrors(test):
 if ((sys.version_info[:2] == (2, 7)) and (twisted.version <= versions.Version('twisted', 9, 0, 0))):
  test.skip = 'flushLoggedErrors is broken on Python==2.7 and Twisted<=9.0.0'
 return test

def usesFlushLoggedErrors ( test ) : if ( ( sys . version_info [ : 2 ] == ( 2 , 7 ) ) and ( twisted . version <= versions . Version ( 'twisted' , 9 , 0 , 0 ) ) ) : test . skip = 'flushLoggedErrors is broken on Python==2.7 and Twisted<=9.0.0' return test
decorate a test method that uses flushloggederrors with this decorator .