Change in ovirt-engine-sdk[sdk_4.0]: Encode/decode test data using UTF-8

omachace at redhat.com omachace at redhat.com
Mon Aug 29 19:39:59 UTC 2016


Ondra Machacek has submitted this change and it was merged.

Change subject: Encode/decode test data using UTF-8
......................................................................


Encode/decode test data using UTF-8

Currently the data sent and received by the tests isn't converted from strings
to arrays of bytes. As a result the tests don't work with Python 3 because the
HTTP server used by the tests requires bytes, not strings. This patch changes
the tests so that they explicitly encode/decode the data.

Change-Id: If7aad9db77ad12ebcd1d995060f4fddf820bcdfb
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 9281aabfc61a620be5cef5d1691ba2878a586340)
---
M sdk/tests/server.py
M sdk/tests/test_reader.py
2 files changed, 7 insertions(+), 5 deletions(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/62963
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If7aad9db77ad12ebcd1d995060f4fddf820bcdfb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: sdk_4.0
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list