[
https://issues.apache.org/jira/browse/CASSANDRA-15736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085469#comment-17085469
]
Eduard Tudenhoefner commented on CASSANDRA-15736:
-------------------------------------------------
[Run with
SyntaxWarnings|https://ci-cassandra.apache.org/job/Cassandra-trunk-dtest/44/consoleText]
[Run without
SyntaxWarnings|https://ci-cassandra.apache.org/job/Cassandra-devbranch-dtest/68/consoleText]
> Fix Python SyntaxWarning: "is not" with a literal. Did you mean "!="
> --------------------------------------------------------------------
>
> Key: CASSANDRA-15736
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15736
> Project: Cassandra
> Issue Type: Task
> Components: Test/dtest
> Reporter: Eduard Tudenhoefner
> Assignee: Eduard Tudenhoefner
> Priority: Normal
> Labels: pull-request-available
> Fix For: 4.0-alpha
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> With the upgrade to Python 3.8 there are SyntaxWarnings now showing up in the
> tests, which should be fixed.
> {code}
> /home/cassandra/cassandra/cassandra-dtest/conftest.py:207: SyntaxWarning: "is
> not" with a literal. Did you mean "!="?
> if len(errors) is not 0:
> /home/cassandra/cassandra/cassandra-dtest/conftest.py:240: SyntaxWarning: "is
> not" with a literal. Did you mean "!="?
> if len(logs) is not 0:
> /home/cassandra/cassandra/venv/src/ccm/ccmlib/repository.py:393:
> SyntaxWarning: "is not" with a literal. Did you mean "!="?
> while attempt < 3 and ret_val is not 0:
> /home/cassandra/cassandra/venv/src/ccm/ccmlib/repository.py:399:
> SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if ret_val is not 0:
> /home/cassandra/cassandra/venv/src/ccm/ccmlib/repository.py:422:
> SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if ret_val is not 0:
> /home/cassandra/cassandra/venv/src/ccm/ccmlib/repository.py:425:
> SyntaxWarning: "is not" with a literal. Did you mean "!="?
> if ret_val is not 0:
> /home/cassandra/cassandra/cassandra-dtest/dtest_setup.py:124: SyntaxWarning:
> "is not" with a literal. Did you mean "!="?
> if len(filtered_errors) is not 0:
> /home/cassandra/cassandra/cassandra-dtest/dtest_setup.py:152: SyntaxWarning:
> "is not" with a literal. Did you mean "!="?
> if len(logs) is not 0:
> /home/cassandra/cassandra/cassandra-dtest/dtest_setup.py:286: SyntaxWarning:
> "is not" with a literal. Did you mean "!="?
> if len(errors) is not 0:
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]