Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14206

pytest/python 3 dtests breaks tests on 3.0 and 3.11

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • Test/dtest/python
    • None

    Description

      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.

      Attachments

        1. loose_version.diff
          1 kB
          Ariel Weisberg

        Activity

          People

            aweisberg Ariel Weisberg
            aweisberg Ariel Weisberg
            Ariel Weisberg
            Sam Tunnicliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: