Overview

Request 913270 accepted

No description set

Fabian Vogt's avatar

Causes python-pylint build failure:

[  215s] =================================== FAILURES ===================================
[  215s] ________________________ test_functional[member_checks] ________________________
[  215s] 
[  215s] test_file = FunctionalTest:member_checks
[  215s] recwarn = WarningsRecorder(record=True)
[  215s] pytestconfig = <_pytest.config.Config object at 0x7ff47ba43fd0>
[  215s] 
[  215s]     [@pytest.mark.parametrize](https://build.opensuse.org/users/pytest.mark.parametrize)("test_file", TESTS, ids=TESTS_NAMES)
[  215s]     def test_functional(test_file, recwarn, pytestconfig):
[  215s]         if UPDATE_FILE.exists():
[  215s]             lint_test = LintModuleOutputUpdate(test_file, pytestconfig)
[  215s]         else:
[  215s]             lint_test = testutils.LintModuleTest(test_file, pytestconfig)
[  215s]         lint_test.setUp()
[  215s] >       lint_test._runTest()
[  215s] 
[  215s] tests/test_functional.py:104: 
[  215s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  215s] 
[  215s] self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7ff4721c3828>
[  215s] 
[  215s]     def _runTest(self):
[  215s]         modules_to_check = [self._test_file.source]
[  215s]         self._linter.check(modules_to_check)
[  215s]         expected_messages, expected_output = self._get_expected()
[  215s]         actual_messages, actual_output = self._get_actual()
[  215s]         assert (
[  215s]             expected_messages == actual_messages
[  215s]         ), self.error_msg_for_unequal_messages(
[  215s] >           actual_messages, expected_messages, actual_output
[  215s]         )
[  215s] E       AssertionError: Wrong results for file "member_checks":
[  215s] E       
[  215s] E       Unexpected in testdata:
[  215s] E        230: not-an-iterable
[  215s] E        232: not-an-iterable
[  215s] E       
[  215s] E       Actual pylint output for this file:
[  215s] E       OutputLine(symbol='no-member', lineno=23, column='', object='Client.__init__', msg="Class 'Provider' has no 'cattribute' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=33, column='', object='Client.use_method', msg="Instance of 'Provider' has no 'hophophop' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=38, column='', object='Client.use_attr', msg="Instance of 'Provider' has no 'attribute' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=50, column='', object='Client.test_bt_types', msg="Instance of 'list' has no 'apppend' member; maybe 'append'?", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=52, column='', object='Client.test_bt_types', msg="Instance of 'dict' has no 'set' member; maybe 'get'?", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=54, column='', object='Client.test_bt_types', msg="Instance of 'tuple' has no 'append' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=56, column='', object='Client.test_bt_types', msg="Instance of 'str' has no 'loower' member; maybe 'lower'?", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=58, column='', object='Client.test_bt_types', msg="Instance of 'int' has no 'whatever' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=64, column='', object='Client.test_no_false_positives', msg="Super of 'Client' has no 'misssing' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=96, column='', object='', msg="Instance of 'Client' has no 'indeed' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=103, column='', object='', msg="Class 'Client' has no 'missing' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=109, column='', object='', msg="Class 'Client' has no 'missing' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=123, column='', object='', msg="Class 'Client' has no 'missing' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=133, column='', object='', msg="Class 'Client' has no 'ala' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=134, column='', object='', msg="Class 'dict' has no 'bala' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=135, column='', object='', msg="Class 'str' has no 'portocala' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=170, column='', object='NoDunderNameInInstance.__init__', msg="Instance of 'NoDunderNameInInstance' has no '__name__' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=176, column='', object='InvalidAccessBySlots.__init__', msg="Instance of 'InvalidAccessBySlots' has no 'teta' member", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='no-member', lineno=208, column='', object='', msg="Class 'Cls' has no 'BAZ' member; maybe 'BAR'?", confidence='INFERENCE')
[  215s] E       OutputLine(symbol='not-an-iterable', lineno=230, column='', object='', msg='Non-iterable value Animal.__members__.keys is used in an iterating context', confidence='HIGH')
[  215s] E       OutputLine(symbol='not-an-iterable', lineno=232, column='', object='', msg='Non-iterable value Animal.__members__.values is used in an iterating context', confidence='HIGH')
[  215s] 
[  215s] ../../BUILDROOT/python-pylint-2.8.3-2.16.x86_64/usr/lib/python3.6/site-packages/pylint/testutils/lint_module_test.py:182: AssertionError
[  215s] ________________ test_functional[logging_format_interpolation] _________________
[  215s] 
[  215s] test_file = FunctionalTest:logging_format_interpolation
[  215s] recwarn = WarningsRecorder(record=True)
[  215s] pytestconfig = <_pytest.config.Config object at 0x7ff47ba43fd0>
[  215s] 
[  215s]     [@pytest.mark.parametrize](https://build.opensuse.org/users/pytest.mark.parametrize)("test_file", TESTS, ids=TESTS_NAMES)
[  215s]     def test_functional(test_file, recwarn, pytestconfig):
[  215s]         if UPDATE_FILE.exists():
[  215s]             lint_test = LintModuleOutputUpdate(test_file, pytestconfig)
[  215s]         else:
[  215s]             lint_test = testutils.LintModuleTest(test_file, pytestconfig)
[  215s]         lint_test.setUp()
[  215s] >       lint_test._runTest()
[  215s] 
[  215s] tests/test_functional.py:104: 
[  215s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  215s] 
[  215s] self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7ff464ffc668>
[  215s] 
[  215s]     def _runTest(self):
[  215s]         modules_to_check = [self._test_file.source]
[  215s]         self._linter.check(modules_to_check)
[  215s]         expected_messages, expected_output = self._get_expected()
[  215s]         actual_messages, actual_output = self._get_actual()
[  215s]         assert (
[  215s]             expected_messages == actual_messages
[  215s]         ), self.error_msg_for_unequal_messages(
[  215s] >           actual_messages, expected_messages, actual_output
[  215s]         )
[  215s] E       AssertionError: Wrong results for file "logging_format_interpolation":
[  215s] E       
[  215s] E       Unexpected in testdata:
[  215s] E         36: logging-format-interpolation
[  215s] E         37: logging-not-lazy
[  215s] E       
[  215s] E       Actual pylint output for this file:
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=16, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=17, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=18, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=19, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=20, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-format-interpolation', lineno=36, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] E       OutputLine(symbol='logging-not-lazy', lineno=37, column='', object='', msg='Use lazy % formatting in logging functions', confidence='HIGH')
[  215s] 
[  215s] ../../BUILDROOT/python-pylint-2.8.3-2.16.x86_64/usr/lib/python3.6/site-packages/pylint/testutils/lint_module_test.py:182: AssertionError
[  215s] _____________ test_functional[regression_3231_no_member_property] ______________
[  215s] 
[  215s] test_file = FunctionalTest:regression_3231_no_member_property
[  215s] recwarn = WarningsRecorder(record=True)
[  215s] pytestconfig = <_pytest.config.Config object at 0x7ff47ba43fd0>
[  215s] 
[  215s]     [@pytest.mark.parametrize](https://build.opensuse.org/users/pytest.mark.parametrize)("test_file", TESTS, ids=TESTS_NAMES)
[  215s]     def test_functional(test_file, recwarn, pytestconfig):
[  215s]         if UPDATE_FILE.exists():
[  215s]             lint_test = LintModuleOutputUpdate(test_file, pytestconfig)
[  215s]         else:
[  215s]             lint_test = testutils.LintModuleTest(test_file, pytestconfig)
[  215s]         lint_test.setUp()
[  215s] >       lint_test._runTest()
[  215s] 
[  215s] tests/test_functional.py:104: 
[  215s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  215s] 
[  215s] self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7ff462db3f98>
[  215s] 
[  215s]     def _runTest(self):
[  215s]         modules_to_check = [self._test_file.source]
[  215s]         self._linter.check(modules_to_check)
[  215s]         expected_messages, expected_output = self._get_expected()
[  215s]         actual_messages, actual_output = self._get_actual()
[  215s]         assert (
[  215s]             expected_messages == actual_messages
[  215s]         ), self.error_msg_for_unequal_messages(
[  215s] >           actual_messages, expected_messages, actual_output
[  215s]         )
[  215s] E       AssertionError: Wrong results for file "regression_3231_no_member_property":
[  215s] E       
[  215s] E       Unexpected in testdata:
[  215s] E         16: no-member
[  215s] E       
[  215s] E       Actual pylint output for this file:
[  215s] E       OutputLine(symbol='no-member', lineno=16, column='', object='Cls.some_method', msg="Function 'values' has no 'issubset' member", confidence='INFERENCE')
[  215s] 
[  215s] ../../BUILDROOT/python-pylint-2.8.3-2.16.x86_64/usr/lib/python3.6/site-packages/pylint/testutils/lint_module_test.py:182: AssertionError
[  215s] _________________________ test_functional[no_self_use] _________________________
[  215s] 
[  216s] test_file = FunctionalTest:no_self_use, recwarn = WarningsRecorder(record=True)
[  216s] pytestconfig = <_pytest.config.Config object at 0x7ff47ba43fd0>
[  216s] 
[  216s]     [@pytest.mark.parametrize](https://build.opensuse.org/users/pytest.mark.parametrize)("test_file", TESTS, ids=TESTS_NAMES)
[  216s]     def test_functional(test_file, recwarn, pytestconfig):
[  216s]         if UPDATE_FILE.exists():
[  216s]             lint_test = LintModuleOutputUpdate(test_file, pytestconfig)
[  216s]         else:
[  216s]             lint_test = testutils.LintModuleTest(test_file, pytestconfig)
[  216s]         lint_test.setUp()
[  216s] >       lint_test._runTest()
[  216s] 
[  216s] tests/test_functional.py:104: 
[  216s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  216s] 
[  216s] self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7ff462c169e8>
[  216s] 
[  216s]     def _runTest(self):
[  216s]         modules_to_check = [self._test_file.source]
[  216s]         self._linter.check(modules_to_check)
[  216s]         expected_messages, expected_output = self._get_expected()
[  216s]         actual_messages, actual_output = self._get_actual()
[  216s]         assert (
[  216s]             expected_messages == actual_messages
[  216s]         ), self.error_msg_for_unequal_messages(
[  216s] >           actual_messages, expected_messages, actual_output
[  216s]         )
[  216s] E       AssertionError: Wrong results for file "no_self_use":
[  216s] E       
[  216s] E       Unexpected in testdata:
[  216s] E         54: invalid-length-returned
[  216s] E       
[  216s] E       Actual pylint output for this file:
[  216s] E       OutputLine(symbol='no-self-use', lineno=16, column='', object='Toto.function_method', msg='Method could be a function', confidence='HIGH')
[  216s] E       OutputLine(symbol='invalid-length-returned', lineno=54, column='', object='Sub1.__len__', msg='__len__ does not return non-negative integer', confidence='HIGH')
[  216s] 
[  216s] ../../BUILDROOT/python-pylint-2.8.3-2.16.x86_64/usr/lib/python3.6/site-packages/pylint/testutils/lint_module_test.py:182: AssertionError
[  216s] =============================== warnings summary ===============================
[  216s] ../../../../../usr/lib/python3.6/site-packages/astroid/node_classes.py:92
[  216s]   /usr/lib/python3.6/site-packages/astroid/node_classes.py:92: DeprecationWarning: The 'astroid.node_classes' module is deprecated and will be replaced by 'astroid.nodes' in astroid 3.0.0
[  216s]     DeprecationWarning,
[  216s] 
[  216s] ../../../../../usr/lib/python3.6/site-packages/astroid/scoped_nodes.py:28
[  216s]   /usr/lib/python3.6/site-packages/astroid/scoped_nodes.py:28: DeprecationWarning: The 'astroid.scoped_nodes' module is deprecated and will be replaced by 'astroid.nodes' in astroid 3.0.0
[  216s]     DeprecationWarning,
[  216s] 
[  216s] -- Docs: https://docs.pytest.org/en/stable/warnings.html
[  216s] =========================== short test summary info ============================
[  216s] FAILED tests/test_functional.py::test_functional[member_checks] - AssertionEr...
[  216s] FAILED tests/test_functional.py::test_functional[logging_format_interpolation]
[  216s] FAILED tests/test_functional.py::test_functional[regression_3231_no_member_property]
[  216s] FAILED tests/test_functional.py::test_functional[no_self_use] - AssertionErro...
[  216s] = 4 failed, 1252 passed, 94 skipped, 192 deselected, 2 warnings in 178.16s (0:02:58) =
[  219s] error: Bad exit status from /var/tmp/rpm-tmp.zfJ7Gq (%check)

Fabian Vogt's avatar

Causes python-pylint failure


Fabian Vogt's avatar

Unignored: returned to active backlog.

Request History
Markéta Machová's avatar

mcalabkova created request


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Fabian Vogt's avatar

favogt_factory set openSUSE:Factory:Staging:F as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:F"


Fabian Vogt's avatar

favogt_factory accepted review

Picked "openSUSE:Factory:Staging:F"


Jan Engelhardt's avatar

jengelh accepted review


Fabian Vogt's avatar

favogt_factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Fabian Vogt's avatar

favogt_factory accepted review

Unstaged from project "openSUSE:Factory:Staging:F"


Fabian Vogt's avatar

favogt_factory set openSUSE:Factory:Staging:F as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:F"


Fabian Vogt's avatar

favogt_factory accepted review

Picked "openSUSE:Factory:Staging:F"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Staging Project openSUSE:Factory:Staging:F got accepted.


Dominique Leuenberger's avatar

dimstar_suse approved review

Staging Project openSUSE:Factory:Staging:F got accepted.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Staging Project openSUSE:Factory:Staging:F got accepted.

openSUSE Build Service is sponsored by