]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web.py: fix pyflakes warnings introduced by byterange patch.
authordavid-sarah <david-sarah@jacaranda.org>
Tue, 8 Jun 2010 04:20:12 +0000 (21:20 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Tue, 8 Jun 2010 04:20:12 +0000 (21:20 -0700)
src/allmydata/test/test_web.py

index 25f7493b4bccc54143b39dae003e6b09b4d0540a..361d2ca10ee15ff2daf5ccd2c71b2740d2245e70 100644 (file)
@@ -599,7 +599,6 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
 
     def test_GET_FILEURL_partial_range_overrun(self):
         headers = {"range": "bytes=100-200"}
-        length  = len(self.BAR_CONTENTS)
         d = self.shouldFail2(error.Error, "test_GET_FILEURL_range_overrun",
                              "416 Requested Range not satisfiable",
                              "First beyond end of file",
@@ -648,7 +647,6 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase):
 
     def test_HEAD_FILEURL_partial_range_overrun(self):
         headers = {"range": "bytes=100-200"}
-        length  = len(self.BAR_CONTENTS)
         d = self.shouldFail2(error.Error, "test_HEAD_FILEURL_range_overrun",
                              "416 Requested Range not satisfiable",
                              "",