mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-29 15:43:54 +00:00
85 lines
2.4 KiB
Python
85 lines
2.4 KiB
Python
"""
|
|
Track the port to Python 3.
|
|
|
|
The two easiest ways to run the part of the test suite which is expected to
|
|
pass on Python 3 are::
|
|
|
|
$ tox -e py36
|
|
|
|
and::
|
|
|
|
$ trial allmydata.test.python3_tests
|
|
|
|
This module has been ported to Python 3.
|
|
"""
|
|
|
|
from __future__ import unicode_literals
|
|
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
|
|
from future.utils import PY2
|
|
if PY2:
|
|
from 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
|
|
|
|
# Keep these sorted alphabetically, to reduce merge conflicts:
|
|
PORTED_MODULES = [
|
|
"allmydata.crypto",
|
|
"allmydata.crypto.aes",
|
|
"allmydata.crypto.ed25519",
|
|
"allmydata.crypto.error",
|
|
"allmydata.crypto.rsa",
|
|
"allmydata.crypto.util",
|
|
"allmydata.hashtree",
|
|
"allmydata.immutable.happiness_upload",
|
|
"allmydata.test.common_py3",
|
|
"allmydata.util._python3",
|
|
"allmydata.util.abbreviate",
|
|
"allmydata.util.assertutil",
|
|
"allmydata.util.base32",
|
|
"allmydata.util.base62",
|
|
"allmydata.util.deferredutil",
|
|
"allmydata.util.fileutil",
|
|
"allmydata.util.dictutil",
|
|
"allmydata.util.encodingutil",
|
|
"allmydata.util.gcutil",
|
|
"allmydata.util.hashutil",
|
|
"allmydata.util.humanreadable",
|
|
"allmydata.util.iputil",
|
|
"allmydata.util.log",
|
|
"allmydata.util.mathutil",
|
|
"allmydata.util.namespace",
|
|
"allmydata.util.netstring",
|
|
"allmydata.util.observer",
|
|
"allmydata.util.pipeline",
|
|
"allmydata.util.pollmixin",
|
|
"allmydata.util.spans",
|
|
"allmydata.util.statistics",
|
|
"allmydata.util.time_format",
|
|
]
|
|
|
|
PORTED_TEST_MODULES = [
|
|
"allmydata.test.test_abbreviate",
|
|
"allmydata.test.test_base32",
|
|
"allmydata.test.test_base62",
|
|
"allmydata.test.test_crypto",
|
|
"allmydata.test.test_deferredutil",
|
|
"allmydata.test.test_dictutil",
|
|
"allmydata.test.test_encodingutil",
|
|
"allmydata.test.test_happiness",
|
|
"allmydata.test.test_hashtree",
|
|
"allmydata.test.test_hashutil",
|
|
"allmydata.test.test_humanreadable",
|
|
"allmydata.test.test_iputil",
|
|
"allmydata.test.test_log",
|
|
"allmydata.test.test_netstring",
|
|
"allmydata.test.test_observer",
|
|
"allmydata.test.test_pipeline",
|
|
"allmydata.test.test_python3",
|
|
"allmydata.test.test_spans",
|
|
"allmydata.test.test_statistics",
|
|
"allmydata.test.test_time_format",
|
|
"allmydata.test.test_util",
|
|
"allmydata.test.test_version",
|
|
]
|