summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSatoshi Kobayashi <satoshi-k@stratosphere.co.jp>2015-04-10 15:43:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-04-14 05:19:56 +0900
commitcad8261b30d742673b71dd664731a7db3bd64566 (patch)
tree94a1d19a59ba9257c5a391c55107b3ea59caef5e
parente2dfdbf5800742ce7b3af6cf6bffb7a95b73198c (diff)
Reduce pep8 warnings with Python3
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/unit/lib/test_ofctl.py8
-rw-r--r--ryu/tests/unit/ofproto/test_parser.py4
-rw-r--r--ryu/tests/unit/ofproto/test_parser_compat.py4
-rw-r--r--ryu/tests/unit/ofproto/test_parser_ofpmatch.py4
4 files changed, 10 insertions, 10 deletions
diff --git a/ryu/tests/unit/lib/test_ofctl.py b/ryu/tests/unit/lib/test_ofctl.py
index a1af4bf4..bfc8b4c7 100644
--- a/ryu/tests/unit/lib/test_ofctl.py
+++ b/ryu/tests/unit/lib/test_ofctl.py
@@ -659,10 +659,10 @@ def _add_tests_actions(cls):
method_name = 'test_' + str(cls.ver) + '_' + act["type"] + '_action'
def _run(self, name, act, cls):
- print ('processing %s ...' % name)
+ print('processing %s ...' % name)
cls_ = Test_ofctl(name)
cls_._test_actions(act, cls)
- print ('adding %s ...' % method_name)
+ print('adding %s ...' % method_name)
func = functools.partial(_run, name=method_name, act=act, cls=cls)
func.func_name = method_name
func.__name__ = method_name
@@ -678,10 +678,10 @@ def _add_tests_match(cls):
value) + str(type(value)) + '_match'
def _run(self, name, attr, cls):
- print ('processing %s ...' % name)
+ print('processing %s ...' % name)
cls_ = Test_ofctl(name)
cls_._test_to_match(attr, cls)
- print ('adding %s ...' % method_name)
+ print('adding %s ...' % method_name)
func = functools.partial(
_run, name=method_name, attr=attr, cls=cls)
func.func_name = method_name
diff --git a/ryu/tests/unit/ofproto/test_parser.py b/ryu/tests/unit/ofproto/test_parser.py
index 76fb9e86..ba878240 100644
--- a/ryu/tests/unit/ofproto/test_parser.py
+++ b/ryu/tests/unit/ofproto/test_parser.py
@@ -251,9 +251,9 @@ def _add_tests():
method_name = ('test_' + file).replace('-', '_').replace('.', '_')
def _run(self, name, wire_msg, json_str):
- print ('processing %s ...' % name)
+ print('processing %s ...' % name)
self._test_msg(name, wire_msg, json_str)
- print ('adding %s ...' % method_name)
+ print('adding %s ...' % method_name)
f = functools.partial(_run, name=method_name, wire_msg=wire_msg,
json_str=json_str)
f.func_name = method_name
diff --git a/ryu/tests/unit/ofproto/test_parser_compat.py b/ryu/tests/unit/ofproto/test_parser_compat.py
index 4d1de32c..f88d6b09 100644
--- a/ryu/tests/unit/ofproto/test_parser_compat.py
+++ b/ryu/tests/unit/ofproto/test_parser_compat.py
@@ -144,9 +144,9 @@ def _add_tests():
method_name = 'test_' + mod + '_ofpmatch_compat'
def _run(self, name, ofpp):
- print ('processing %s ...' % name)
+ print('processing %s ...' % name)
self._test(name, ofpp)
- print ('adding %s ...' % method_name)
+ print('adding %s ...' % method_name)
f = functools.partial(_run, name=method_name,
ofpp=ofpp)
f.func_name = method_name
diff --git a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
index 3ae60fcd..2b64cdbe 100644
--- a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
+++ b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py
@@ -227,9 +227,9 @@ def _add_tests():
method_name = method_name.replace(' ', '_')
def _run(self, name, ofpp, d, domask):
- print ('processing %s ...' % name)
+ print('processing %s ...' % name)
self._test(name, ofpp, d, domask)
- print ('adding %s ...' % method_name)
+ print('adding %s ...' % method_name)
f = functools.partial(_run, name=method_name,
ofpp=ofpp, d=d, domask=domask)
f.func_name = method_name