---
ryu/tests/unit/lib/test_rpc.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ryu/tests/unit/lib/test_rpc.py b/ryu/tests/unit/lib/test_rpc.py
index 2c43521..d56ef84 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
--
2.3.2 (Apple Git-55)
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel