From: Brian Warner Date: Tue, 25 Dec 2007 08:56:04 +0000 (-0700) Subject: test_web.py: fix pyflakes error X-Git-Tag: allmydata-tahoe-0.7.0~69 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri//%22%22?a=commitdiff_plain;h=fae5de8d0d299af2d4584b8e36c58c2cbc5a063c;p=tahoe-lafs%2Ftahoe-lafs.git test_web.py: fix pyflakes error --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index f6345d99..edf7ad2b 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -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),