diff --git a/src/allmydata/test/mutable/test_update.py b/src/allmydata/test/mutable/test_update.py index 9d5fb9586..65af06486 100644 --- a/src/allmydata/test/mutable/test_update.py +++ b/src/allmydata/test/mutable/test_update.py @@ -1,4 +1,14 @@ +""" +Ported to Python 3. +""" from __future__ import print_function +from __future__ import division +from __future__ import absolute_import +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 re from twisted.trial import unittest @@ -24,7 +34,7 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin): self.nm = self.c.nodemaker # self.data should be at least three segments long. td = b"testdata " - self.data = td*(int(3*SEGSIZE/len(td))+10) # currently about 400kB + self.data = td*(int(3*SEGSIZE//len(td))+10) # currently about 400kB assert len(self.data) > 3*SEGSIZE self.small_data = b"test data" * 10 # 90 B; SDMF diff --git a/src/allmydata/util/_python3.py b/src/allmydata/util/_python3.py index 17fcf9168..106d3359a 100644 --- a/src/allmydata/util/_python3.py +++ b/src/allmydata/util/_python3.py @@ -108,6 +108,7 @@ PORTED_TEST_MODULES = [ "allmydata.test.mutable.test_repair", "allmydata.test.mutable.test_roundtrip", "allmydata.test.mutable.test_servermap", + "allmydata.test.mutable.test_update", "allmydata.test.test_abbreviate", "allmydata.test.test_base32", "allmydata.test.test_base62",