]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/test/test_download.py
Fix some potential bugs in test code exposed by check-miscaptures.py. refs #1556
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / test / test_download.py
index 30485b4a020da0ad8b0a23eeba5c2a9b296174fa..0e9f69439fa580d2f2c549f090a6763b2561ea45 100644 (file)
@@ -1115,7 +1115,7 @@ class Corruption(_Base, unittest.TestCase):
             for i,which,substring in corrupt_me:
                 # All these tests result in a failed download.
                 d.addCallback(self._corrupt_flip_all, imm_uri, i)
-                d.addCallback(lambda ign:
+                d.addCallback(lambda ign, which=which, substring=substring:
                               self.shouldFail(NoSharesError, which,
                                               substring,
                                               _download, imm_uri))