mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 04:16:11 +02:00
test_parser_v10: fix unittest breakage
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 <yamada.hideki@po.ntts.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
d3970faeab
commit
03c622453a
@ -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',)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user