mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 14:52:26 +00:00
Ported to Python 3.
This commit is contained in:
parent
bcc6d91444
commit
dfdaac7474
@ -1,3 +1,15 @@
|
||||
"""
|
||||
Ported to Python 3.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from future.utils import PY2
|
||||
if PY2:
|
||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
|
||||
|
||||
import os, base64
|
||||
from twisted.trial import unittest
|
||||
from allmydata import uri
|
||||
@ -22,10 +34,10 @@ class Interoperability(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixi
|
||||
sdmf_old_contents = b"This is a test file.\n"
|
||||
def copy_sdmf_shares(self):
|
||||
# We'll basically be short-circuiting the upload process.
|
||||
servernums = self.g.servers_by_number.keys()
|
||||
servernums = list(self.g.servers_by_number.keys())
|
||||
assert len(servernums) == 10
|
||||
|
||||
assignments = zip(self.sdmf_old_shares.keys(), servernums)
|
||||
assignments = list(zip(self.sdmf_old_shares.keys(), servernums))
|
||||
# Get the storage index.
|
||||
cap = uri.from_string(self.sdmf_old_cap)
|
||||
si = cap.get_storage_index()
|
||||
|
@ -101,6 +101,7 @@ PORTED_TEST_MODULES = [
|
||||
"allmydata.test.mutable.test_exceptions",
|
||||
"allmydata.test.mutable.test_filehandle",
|
||||
"allmydata.test.mutable.test_filenode",
|
||||
"allmydata.test.mutable.test_interoperability",
|
||||
"allmydata.test.test_abbreviate",
|
||||
"allmydata.test.test_base32",
|
||||
"allmydata.test.test_base62",
|
||||
|
Loading…
Reference in New Issue
Block a user