mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-24 09:46:43 +00:00
Port to Python 3.
This commit is contained in:
@ -1,9 +1,18 @@
|
||||
from past.builtins import unicode
|
||||
"""
|
||||
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 import ensure_binary
|
||||
|
||||
import os
|
||||
|
||||
from six import ensure_binary
|
||||
|
||||
from twisted.python.filepath import FilePath
|
||||
from twisted.trial import unittest
|
||||
from twisted.internet import defer
|
||||
@ -76,7 +85,7 @@ class MultiIntroTests(unittest.TestCase):
|
||||
tahoe_cfg_furl = myclient.introducer_clients[0].introducer_furl
|
||||
|
||||
# assertions
|
||||
self.failUnlessEqual(fake_furl, unicode(tahoe_cfg_furl, "utf-8"))
|
||||
self.failUnlessEqual(fake_furl, str(tahoe_cfg_furl, "utf-8"))
|
||||
self.assertEqual(
|
||||
list(
|
||||
warning["message"]
|
||||
|
@ -230,6 +230,7 @@ PORTED_TEST_MODULES = [
|
||||
"allmydata.test.test_json_metadata",
|
||||
"allmydata.test.test_log",
|
||||
"allmydata.test.test_monitor",
|
||||
"allmydata.test.test_multi_introducers",
|
||||
"allmydata.test.test_netstring",
|
||||
"allmydata.test.test_no_network",
|
||||
"allmydata.test.test_node",
|
||||
|
Reference in New Issue
Block a user