Signed-off-by: Satoshi Kobayashi <[email protected]>
---
 ryu/tests/unit/cmd/test_manager.py     | 7 +++++++
 ryu/tests/unit/ofproto/test_ofproto.py | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/ryu/tests/unit/cmd/test_manager.py 
b/ryu/tests/unit/cmd/test_manager.py
index 84c67c2..0f8fb62 100644
--- a/ryu/tests/unit/cmd/test_manager.py
+++ b/ryu/tests/unit/cmd/test_manager.py
@@ -19,6 +19,13 @@ import unittest
 import mock
 from nose.tools import eq_, raises
 
+try:
+    # Python 3
+    from imp import reload
+except ImportError:
+    # Python 2
+    pass
+
 from ryu.cmd.manager import main
 
 
diff --git a/ryu/tests/unit/ofproto/test_ofproto.py 
b/ryu/tests/unit/ofproto/test_ofproto.py
index 272747d..47f1e54 100644
--- a/ryu/tests/unit/ofproto/test_ofproto.py
+++ b/ryu/tests/unit/ofproto/test_ofproto.py
@@ -16,6 +16,13 @@
 
 # vim: tabstop=4 shiftwidth=4 softtabstop=4
 
+try:
+    # Python 3
+    from imp import reload
+except ImportError:
+    # Python 2
+    pass
+
 import unittest
 import logging
 from nose.tools import eq_
-- 
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

Reply via email to