Commit 366da0 break unittest.
The following error occurs.
$ ./run_tests.sh
(...)
======================================================================
ERROR: test_parser
(ryu.tests.unit.ofproto.test_parser_v10.TestOFPVendorStatsReply)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hideki/ryu/ryu/tests/unit/ofproto/test_parser_v10.py", line 4962,
in test_parser
eq_(specific_data, body.specific_data)
AttributeError: 'str' object has no attribute 'specific_data'
----------------------------------------------------------------------
Ran 1249 tests in 0.991s
FAILED (errors=1)
Signed-off-by: YAMADA Hideki <[email protected]>
---
ryu/tests/unit/ofproto/test_parser_v10.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py
b/ryu/tests/unit/ofproto/test_parser_v10.py
index 66a69a4..8723231 100644
--- a/ryu/tests/unit/ofproto/test_parser_v10.py
+++ b/ryu/tests/unit/ofproto/test_parser_v10.py
@@ -4959,7 +4959,7 @@ class TestOFPVendorStatsReply(unittest.TestCase):
# body
body = res.body[0]
- eq_(specific_data, body.specific_data)
+ eq_(specific_data, body)
# test __str__()
list_ = ('version:', 'msg_type', 'xid',)
--
1.7.1
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel