diff --git a/src/allmydata/test/mutable/test_filenode.py b/src/allmydata/test/mutable/test_filenode.py index 8ed2371ad..de03afc5a 100644 --- a/src/allmydata/test/mutable/test_filenode.py +++ b/src/allmydata/test/mutable/test_filenode.py @@ -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 + from six.moves import cStringIO as StringIO from twisted.internet import defer, reactor from twisted.trial import unittest diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 1d0517213..a7f74a686 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -96,6 +96,7 @@ PORTED_TEST_MODULES = [ "allmydata.test.mutable.test_datahandle", "allmydata.test.mutable.test_different_encoding", "allmydata.test.mutable.test_filehandle", + "allmydata.test.mutable.test_filenode", "allmydata.test.test_abbreviate", "allmydata.test.test_base32", "allmydata.test.test_base62",