cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ariel Weisberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14206) pytest/python 3 dtests breaks tests on 3.0 and 3.11
Date Wed, 07 Feb 2018 17:43:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-14206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16355793#comment-16355793
] 

Ariel Weisberg commented on CASSANDRA-14206:
--------------------------------------------

I pushed additional commit(s). I guess I forgot to push it before asking you to review. I
think it cleans up the debug statements you are talking about as well as some codec usage.

> pytest/python 3 dtests breaks tests on 3.0 and 3.11
> ---------------------------------------------------
>
>                 Key: CASSANDRA-14206
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14206
>             Project: Cassandra
>          Issue Type: Test
>          Components: Testing
>            Reporter: Ariel Weisberg
>            Assignee: Ariel Weisberg
>            Priority: Major
>         Attachments: loose_version.diff
>
>
> In 2.7 it uses the cmp built-in to compare the list of version components which accepts
comparisons of strings and integers. In python 3 it manually compares each using <, ==,
and > which can fail if the the types don't match.
> Switch to using our own comparison function that preserves the old behavior.
> Additionally the new thrift bindings don't accept strings where they used to. The strings
need to be provided use utf-8 encoded bytes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message