mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Port to Python 3.
This commit is contained in:
parent
b1800c457d
commit
5cba8a4380
@ -1,10 +1,18 @@
|
||||
"""Tests for the dirnode module."""
|
||||
# from __future__ import absolute_import
|
||||
# from __future__ import division
|
||||
# from __future__ import print_function
|
||||
# from __future__ import unicode_literals
|
||||
"""Tests for the dirnode module.
|
||||
|
||||
from past.builtins import unicode, long
|
||||
Ported to Python 3.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from past.builtins import long
|
||||
|
||||
from future.utils import PY2
|
||||
if PY2:
|
||||
# Skip list() since it results in spurious test failures
|
||||
from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, object, range, str, max, min # noqa: F401
|
||||
|
||||
import six
|
||||
import time
|
||||
@ -1468,7 +1476,7 @@ class Packing(testutil.ReallyEqualMixin, unittest.TestCase):
|
||||
}
|
||||
kids = {}
|
||||
for name in which:
|
||||
kids[unicode(name)] = (nm.create_from_cap(caps[name]), {})
|
||||
kids[str(name)] = (nm.create_from_cap(caps[name]), {})
|
||||
return kids
|
||||
|
||||
@given(text(min_size=1, max_size=20))
|
||||
|
@ -134,6 +134,7 @@ PORTED_TEST_MODULES = [
|
||||
"allmydata.test.test_crypto",
|
||||
"allmydata.test.test_deferredutil",
|
||||
"allmydata.test.test_dictutil",
|
||||
"allmydata.test.test_dirnode",
|
||||
"allmydata.test.test_download",
|
||||
"allmydata.test.test_encode",
|
||||
"allmydata.test.test_encodingutil",
|
||||
|
Loading…
Reference in New Issue
Block a user