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] [Created] (CASSANDRA-14206) Python 3 LooseVersion breaks compatibility with Python 2.7 LooseVersion
Date Wed, 31 Jan 2018 17:34:00 GMT
Ariel Weisberg created CASSANDRA-14206:
------------------------------------------

             Summary: Python 3 LooseVersion breaks compatibility with Python 2.7 LooseVersion
                 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
         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.



--
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