diff --git a/src/allmydata/test/no_network.py b/src/allmydata/test/no_network.py index 1fd2bead2..4a75920b2 100644 --- a/src/allmydata/test/no_network.py +++ b/src/allmydata/test/no_network.py @@ -1,3 +1,6 @@ +""" +Ported to Python 3. +""" from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/src/allmydata/test/test_no_network.py b/src/allmydata/test/test_no_network.py index a61211081..b1aa1350a 100644 --- a/src/allmydata/test/test_no_network.py +++ b/src/allmydata/test/test_no_network.py @@ -1,5 +1,16 @@ +""" +Test the NoNetworkGrid test harness. -# Test the NoNetworkGrid test harness +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 from twisted.trial import unittest from twisted.application import service diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 2b10854a9..c17b8cff7 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -42,6 +42,7 @@ PORTED_MODULES = [ "allmydata.storage.mutable", "allmydata.storage.shares", "allmydata.test.common_py3", + "allmydata.test.no_network", "allmydata.uri", "allmydata.util._python3", "allmydata.util.abbreviate", @@ -91,6 +92,7 @@ PORTED_TEST_MODULES = [ "allmydata.test.test_log", "allmydata.test.test_monitor", "allmydata.test.test_netstring", + "allmydata.test.test_no_network", "allmydata.test.test_observer", "allmydata.test.test_pipeline", "allmydata.test.test_python3",