-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.4.1: pytest is failing in tests/test_linters.py::test_pylint
unit
#238
Comments
stanislavlevin
added a commit
to stanislavlevin/pylama
that referenced
this issue
May 16, 2023
See https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/no-else-return.html for details. Fixes: klen#238 Signed-off-by: Stanislav Levin <slev@altlinux.org>
I've tested 2093ce0 and pytest is failing in new place ========================================================================================= FAILURES ==========================================================================================
________________________________________________________________________________________ test_quotes ________________________________________________________________________________________
source = '#!/usr/bin/env python\n# coding: utf-8\n# (c) 2005 Divmod, Inc. See LICENSE file for details\n\n\n# commented code\n...e expected\'\n\n def bad_method(self): # type: () -> None\n """Return type mismatch."""\n return 1\n'
def test_quotes(source):
from pylama.lint import LINTERS, Linter
> quotes = LINTERS["quotes"]
E KeyError: 'quotes'
tests/test_linters.py:198: KeyError
================================================================================== short test summary info ==================================================================================
FAILED tests/test_linters.py::test_quotes - KeyError: 'quotes'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 1 failed, 25 passed in 7.12s ================================================================================ and after --deselect tests/test_linters.py::test_quotes it fails in: ========================================================================================= FAILURES ==========================================================================================
_______________________________________________________________________________________ test_vulture ________________________________________________________________________________________
context = <function context.<locals>.fabric at 0x7f8307cd4700>
def test_vulture(context):
from pylama.lint import LINTERS
> vulture = LINTERS["vulture"]
E KeyError: 'vulture'
tests/test_linters.py:209: KeyError
================================================================================== short test summary info ==================================================================================
FAILED tests/test_linters.py::test_vulture - KeyError: 'vulture'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================== 1 failed, 25 passed, 1 deselected in 7.07s ========================================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: