fail() takes a message, not Exception

This commit is contained in:
meejah 2020-04-18 01:43:12 -06:00
parent 018e161f19
commit 349aefeacc

View File

@ -658,10 +658,8 @@ class WebMixin(testutil.TimezoneMixin):
(response_substring, res.value.response,
which))
else:
self.fail(
RuntimeError("%s was supposed to raise %s, not get '%s'" %
(which, expected_failure, res))
)
self.fail("%s was supposed to raise %s, not get '%s'" %
(which, expected_failure, res))
d.addBoth(done)
return d