From fae5de8d0d299af2d4584b8e36c58c2cbc5a063c Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 25 Dec 2007 01:56:04 -0700 Subject: [PATCH] test_web.py: fix pyflakes error --- src/allmydata/test/test_web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.45.2