You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Jordan Birdsell (JIRA)" <ji...@apache.org> on 2016/09/27 12:21:21 UTC
[jira] [Created] (KUDU-1654) Python 3 Client Test Failure:
test_table_column
Jordan Birdsell created KUDU-1654:
-------------------------------------
Summary: Python 3 Client Test Failure: test_table_column
Key: KUDU-1654
URL: https://issues.apache.org/jira/browse/KUDU-1654
Project: Kudu
Issue Type: Bug
Components: python
Affects Versions: Public beta
Reporter: Jordan Birdsell
Assignee: Jordan Birdsell
Python 3 requires an explicit encodinng to be specified when casting to bytes, in python 2 bytes is synonymous with string so this is a non-issue. This should be updated to use the compat module that has accounted for this difference with the frombytes method.
self = <kudu.tests.test_client.TestClient testMethod=test_table_column>
def test_table_column(self):
table = self.client.table(self.ex_table)
cols = [(table['key'], 'key', 'int32'),
(table[1], 'int_val', 'int32'),
(table[-1], 'unixtime_micros_val', 'unixtime_micros')]
for col, name, type in cols:
> assert col.name == bytes(name)
E TypeError: string argument without an encoding
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)