You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jason Brown (JIRA)" <ji...@apache.org> on 2018/07/24 15:25:00 UTC

[jira] [Resolved] (CASSANDRA-13978) dtest failure in cqlsh_tests/cqlsh_tests.py:TestCqlsh.test_pep8_compliance due to deprecation warning

     [ https://issues.apache.org/jira/browse/CASSANDRA-13978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Brown resolved CASSANDRA-13978.
-------------------------------------
    Resolution: Implemented

looks like pycodestyle was added in CASSANDRA-14134

> dtest failure in cqlsh_tests/cqlsh_tests.py:TestCqlsh.test_pep8_compliance due to deprecation warning
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-13978
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13978
>             Project: Cassandra
>          Issue Type: Test
>          Components: Testing
>            Reporter: Joel Knighton
>            Assignee: Mahdi Mohammadinasab
>            Priority: Trivial
>              Labels: dtest, lhf, low-hanging-fruit
>
> The dtest {{cqlsh_tests/cqlsh_tests.py:TestCqlsh.test_pep8_compliance}} fails on all branches with pep8 package version 1.7.1. The pep8 package has been deprecated and renamed pycodestyle.
> {code}
> ======================================================================
> FAIL: test_pep8_compliance (cqlsh_tests.cqlsh_tests.TestCqlsh)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jkni/projects/cassandra-dtest/tools/decorators.py", line 48, in wrapped
>     f(obj)
>   File "/home/jkni/projects/cassandra-dtest/cqlsh_tests/cqlsh_tests.py", line 68, in test_pep8_compliance
>     self.assertEqual(len(stderr), 0, stderr)
> AssertionError: /home/jkni/projects/cassandra-dtest/venv/lib/python2.7/site-packages/pep8.py:2124: UserWarning: 
> pep8 has been renamed to pycodestyle (GitHub issue #466)
> Use of the pep8 tool will be removed in a future release.
> Please install and use `pycodestyle` instead.
> $ pip install pycodestyle
> $ pycodestyle ...
>   '\n\n'
> {code}
> We should update this dependency from pep8 to pycodestyle. With this change, several new errors are thrown. I don't know if these are new checks that we should choose to ignore, false positives due to new behaviors, or false negatives that are now successfully caught. If they were previously false negatives, we'll need to fix these in cqlsh on some branches.



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