mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-01 18:56:41 +00:00
test_repairer.py: hush pyflakes: remove duplicate/shadowed function name, by using the earlier definition (which is identical)
This commit is contained in:
parent
fe362c0021
commit
8f2ec16b2c
@ -354,8 +354,9 @@ class Repairer(common.ShareManglingMixin, unittest.TestCase):
|
|||||||
d.addCallback(self.find_shares)
|
d.addCallback(self.find_shares)
|
||||||
d.addCallback(lambda x: self.failUnlessEqual(x, {}))
|
d.addCallback(lambda x: self.failUnlessEqual(x, {}))
|
||||||
|
|
||||||
# The following process of deleting 8 of the shares and asserting that you can't
|
# The following process of deleting 8 of the shares and asserting
|
||||||
# download it is more to test this test code than to test the Tahoe code...
|
# that you can't download it is more to test this test code than to
|
||||||
|
# test the Tahoe code...
|
||||||
def _then_delete_8(unused=None):
|
def _then_delete_8(unused=None):
|
||||||
self.replace_shares(stash[0], storage_index=self.uri.storage_index)
|
self.replace_shares(stash[0], storage_index=self.uri.storage_index)
|
||||||
for i in range(8):
|
for i in range(8):
|
||||||
@ -375,12 +376,9 @@ class Repairer(common.ShareManglingMixin, unittest.TestCase):
|
|||||||
d.addCallbacks(_after_download_callb, _after_download_errb)
|
d.addCallbacks(_after_download_callb, _after_download_errb)
|
||||||
d.addCallback(_then_download)
|
d.addCallback(_then_download)
|
||||||
|
|
||||||
# The following process of deleting 8 of the shares and asserting that you can't repair
|
# The following process of deleting 8 of the shares and asserting
|
||||||
# it is more to test this test code than to test the Tahoe code...
|
# that you can't repair it is more to test this test code than to
|
||||||
def _then_delete_8(unused=None):
|
# test the Tahoe code...
|
||||||
self.replace_shares(stash[0], storage_index=self.uri.storage_index)
|
|
||||||
for i in range(8):
|
|
||||||
self._delete_a_share()
|
|
||||||
d.addCallback(_then_delete_8)
|
d.addCallback(_then_delete_8)
|
||||||
|
|
||||||
def _then_repair(unused=None):
|
def _then_repair(unused=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user