[
https://issues.apache.org/jira/browse/KUDU-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jordan Birdsell updated KUDU-1654:
----------------------------------
Resolution: Fixed
Fix Version/s: 1.1.0
Status: Resolved (was: In Review)
Fixed with commit 5935697e073b698f96f1c3a981347a8c949ca6ad
> 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
> Fix For: 1.1.0
>
>
> 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)