• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

osrg / ryu / 845
0%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2016 09:31AM UTC
Jobs 5
Files 400
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
845

push

travis-ci

fujita
RPC: Specify encoding to msgpack.Packer/Unpacker

Currently, RPC requests using rpc_cli.py will crash on Python 3,
because the decoded string through msgpack-rpc is not str type
when the default encoding is not specified into msgpack.Unpacker.
On Python 2, bytes type is the same as str type, and this problem
does not occur.

The old spec of msgpack had no notation of the encoding, but now,
msgpack defines "UTF-8" as the default encoding and has the explicit
type definitions for String and Binary.
  https://github.com/msgpack/msgpack/blob/master/spec.md

This patch fixes to specify the encoding to msgpack.Packer/Unpacker
and enable to use Binary type when packing for the Python 3
compatibility.

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

64 of 64 new or added lines in 3 files covered. (100.0%)

52664 of 77315 relevant lines covered (68.12%)

2.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
ryu/services/protocols/bgp/net_ctrl.py
15
100.0
ryu/tests/unit/lib/test_rpc.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
ryu/services/protocols/bgp/base.py
10
100.0
ryu/cmd/manager.py
12
100.0
ryu/cmd/ryu_base.py
14
100.0
ryu/contrib/__init__.py
23
100.0
ryu/app/wsgi.py
43
100.0
ryu/cmd/rpc_cli.py
45
100.0
ryu/tests/unit/lib/test_rpc.py
118
100.0
ryu/cmd/of_config_cli.py
Jobs
ID Job ID Ran Files Coverage
1 845.1 (TOX_ENV=py27) 14 Nov 2016 09:36AM UTC 0
68.07
Travis Job 845.1
2 845.2 (TOX_ENV=py34) 14 Nov 2016 09:36AM UTC 0
68.08
Travis Job 845.2
3 845.3 (TOX_ENV=py35) 14 Nov 2016 09:36AM UTC 0
68.08
Travis Job 845.3
4 845.4 (TOX_ENV=pypy26) 14 Nov 2016 09:36AM UTC 0
68.09
Travis Job 845.4
5 845.5 (TOX_ENV=pep8) 14 Nov 2016 09:31AM UTC 0
Travis Job 845.5
Source Files on build 845
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #845
  • 1af384fa on github
  • Prev Build on master (#844)
  • Next Build on master (#846)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc