]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web.py: fix pyflakes error
authorBrian Warner <warner@lothar.com>
Tue, 25 Dec 2007 08:56:04 +0000 (01:56 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 25 Dec 2007 08:56:04 +0000 (01:56 -0700)
src/allmydata/test/test_web.py

index f6345d99a88e33216780770af19bee55fe3d75dc..edf7ad2b6d29f438ca7574d21448cc6278ccc3ab 100644 (file)
@@ -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),