Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680816 - dev-python/pylint-2.2.2: pylint/test/test_functional.py:323: Failed
Summary: dev-python/pylint-2.2.2: pylint/test/test_functional.py:323: Failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 677026
  Show dependency tree
 
Reported: 2019-03-17 23:54 UTC by ernsteiswuerfel
Modified: 2019-03-18 22:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (pylint-2.2.2:20190317-234356.log,139.28 KB, text/plain)
2019-03-17 23:54 UTC, ernsteiswuerfel
Details
emerge --info (file_680816.txt,6.06 KB, text/plain)
2019-03-17 23:54 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2019-03-17 23:54:17 UTC
Created attachment 569554 [details]
build.log

=============================================== FAILURES ===============================================
__________________________________ test_functional[generated_members] __________________________________

test_file = <test_functional.FunctionalTestFile object at 0xf5f924b0>

    @pytest.mark.parametrize("test_file", TESTS, ids=TESTS_NAMES)
    def test_functional(test_file):
        LintTest = LintModuleOutputUpdate(test_file) if UPDATE else LintModuleTest(test_file)
        LintTest.setUp()
>       LintTest._runTest()

pylint/test/test_functional.py:379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test_functional.LintModuleTest object at 0xf15000d0>

    def _runTest(self):
        self._linter.check([self._test_file.module])
    
        expected_messages, expected_text = self._get_expected()
        received_messages, received_text = self._get_received()
    
        if expected_messages != received_messages:
            msg = ['Wrong results for file "%s":' % (self._test_file.base)]
            missing, unexpected = multiset_difference(expected_messages,
                                                      received_messages)
            if missing:
                msg.append('\nExpected in testdata:')
                msg.extend(' %3d: %s' % msg for msg in sorted(missing))
            if unexpected:
                msg.append('\nUnexpected in testdata:')
                msg.extend(' %3d: %s' % msg for msg in sorted(unexpected))
>           pytest.fail('\n'.join(msg))
E           Failed: Wrong results for file "generated_members":
E           
E           Unexpected in testdata:
E              5: wrong-import-order

pylint/test/test_functional.py:323: Failed
Comment 1 ernsteiswuerfel archtester 2019-03-17 23:54:51 UTC
Created attachment 569556 [details]
emerge --info
Comment 2 Virgil Dupras (RETIRED) gentoo-dev 2019-03-18 03:08:28 UTC
I've just bumped dev-python/isort (a dependency) to 4.3.15, the last of a series of many hotfixes since 4.3.5, our old ebuild. Since your error seems to be related to import sorts, would you mind running tests with isort 4.3.15? thanks.
Comment 3 ernsteiswuerfel archtester 2019-03-18 22:36:58 UTC
(In reply to Virgil Dupras from comment #2)
> [...] Since your error seems to be related to import sorts, would you mind 
> running tests with isort 4.3.15? thanks.
You were correct. With isort-4.3.15 current pylint-2.3.1 passes all tests.