mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-27 14:30:19 +00:00
test_web.py: fix pyflakes error
This commit is contained in:
parent
0e804da8d9
commit
fae5de8d0d
@ -217,7 +217,7 @@ class WebMixin(object):
|
||||
assert substring is None or isinstance(substring, str)
|
||||
d = defer.maybeDeferred(callable, *args, **kwargs)
|
||||
def done(res):
|
||||
if isinstance(res, Failure):
|
||||
if isinstance(res, failure.Failure):
|
||||
res.trap(expected_failure)
|
||||
if substring:
|
||||
self.failUnless(substring in str(res),
|
||||
|
Loading…
x
Reference in New Issue
Block a user