summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSatoshi Kobayashi <satoshi-k@stratosphere.co.jp>2015-04-13 16:32:08 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-14 05:31:42 +0900
commit67e3821c94fa5d10c31a94378a867c59b3d6a7a8 (patch)
tree5b7bfcec8840a337e90ef1ff60f6cfd5fc3a8ae4
parentd8a8a99bb227637103792eee15960de8c1635b9a (diff)
'sys.maxint' has been deprecated in Python 3
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/unit/lib/test_rpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/tests/unit/lib/test_rpc.py b/ryu/tests/unit/lib/test_rpc.py
index 2c435215..d56ef846 100644
--- a/ryu/tests/unit/lib/test_rpc.py
+++ b/ryu/tests/unit/lib/test_rpc.py
@@ -16,11 +16,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import sys
import numbers
import time
import unittest
from nose.tools import raises
+import six
from ryu.lib import hub
hub.patch()
@@ -111,7 +111,7 @@ class Test_rpc(unittest.TestCase):
def test_0_call_int2(self):
c = rpc.Client(self._client_sock)
- obj = sys.maxint
+ obj = six.MAXSIZE
assert isinstance(obj, int)
result = c.call("resp", [obj])
assert result == obj
@@ -119,7 +119,7 @@ class Test_rpc(unittest.TestCase):
def test_0_call_int3(self):
c = rpc.Client(self._client_sock)
- obj = - sys.maxint - 1
+ obj = - six.MAXSIZE - 1
assert isinstance(obj, int)
result = c.call("resp", [obj])
assert result == obj