You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/04/16 08:19:00 UTC
[jira] [Updated] (CASSANDRA-15736) Fix Python SyntaxWarning: "is
not" with a literal. Did you mean "!="
[ https://issues.apache.org/jira/browse/CASSANDRA-15736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CASSANDRA-15736:
---------------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org