test_util: remove obsolete flushLoggedErrors check

We now depend on a much newer version of Twisted than the one that
lacked TestCase.flushLoggedErrors.
This commit is contained in:
Brian Warner 2016-04-22 18:48:58 -07:00
parent cffa682ddc
commit f665d0690e

View File

@ -1732,11 +1732,6 @@ class SampleError(Exception):
class Log(unittest.TestCase):
def test_err(self):
if not hasattr(self, "flushLoggedErrors"):
# without flushLoggedErrors, we can't get rid of the
# twisted.log.err that tahoe_log records, so we can't keep this
# test from [ERROR]ing
raise unittest.SkipTest("needs flushLoggedErrors from Twisted-2.5.0")
try:
raise SampleError("simple sample")
except: