-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
HacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsMaintenanceDiscussion or action around maintaining pylint or the dev workflowDiscussion or action around maintaining pylint or the dev workflow
Description
Bug description
I'm running tests for `pylint` and I found that two of them fails when there is `pydantic 1.10.13` installed.Configuration
No response
Command used
tox --current-env --no-provision --recreate -e py39Pylint output
____________________ test_functional[dataclass_with_field] _____________________
self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7fffa28c29d0>
def runTest(self) -> None:
> self._runTest()
E AssertionError: Wrong message(s) raised for "dataclass_with_field.py":
E
E Expected in testdata:
E 7: import-error
E
E Actual pylint output for this file:
pylint/testutils/lint_module_test.py:147: AssertionError
______________________ test_functional[no_name_in_module] ______________________
self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7fff9abcdca0>
def runTest(self) -> None:
> self._runTest()
E AssertionError: Wrong message(s) raised for "no_name_in_module.py":
E
E Unexpected in testdata:
E 86: no-name-in-module
E
E Actual pylint output for this file:
E OutputLine(symbol='no-name-in-module', lineno=5, column=0, end_lineno=5, end_column=23, object='', msg="No name 'tutu' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=6, column=0, end_lineno=6, end_column=28, object='', msg="No name 'toto' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-member', lineno=10, column=0, end_lineno=10, end_column=32, object='', msg="Module 'xml.etree.ElementTree' has no 'nonexistant_function' member", confidence='INFERENCE')
E OutputLine(symbol='no-member', lineno=11, column=0, end_lineno=11, end_column=19, object='', msg="Module 'xml.etree.ElementTree' has no 'another' member", confidence='INFERENCE')
E OutputLine(symbol='no-member', lineno=16, column=6, end_lineno=16, end_column=17, object='', msg="Module 'sys' has no 'stdoout' member; maybe 'stdout'?", confidence='INFERENCE')
E OutputLine(symbol='no-name-in-module', lineno=23, column=0, end_lineno=23, end_column=34, object='', msg="No name 'compiile' in module 're'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=23, column=0, end_lineno=23, end_column=34, object='', msg="No name 'findiiter' in module 're'", confidence='UNDEFINED')
E OutputLine(symbol='pointless-statement', lineno=26, column=0, end_lineno=26, end_column=23, object='', msg='Statement seems to have no effect', confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=34, column=4, end_lineno=34, end_column=36, object='', msg="No name 'anything' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=49, column=4, end_lineno=49, end_column=37, object='', msg="No name 'indeed_missing' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=54, column=4, end_lineno=54, end_column=27, object='', msg="No name 'emit' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=71, column=8, end_lineno=71, end_column=32, object='', msg="No name 'emit2' in module 'collections'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=76, column=0, end_lineno=76, end_column=34, object='', msg="No name 'lala' in module 'functional.n.no.no_self_argument'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=77, column=0, end_lineno=77, end_column=39, object='', msg="No name 'bla' in module 'functional.n.no.no_self_argument'", confidence='UNDEFINED')
E OutputLine(symbol='no-name-in-module', lineno=86, column=0, end_lineno=86, end_column=30, object='', msg="No name 'BaseModel' in module 'pydantic'", confidence='UNDEFINED')
pylint/testutils/lint_module_test.py:147: AssertionErrorExpected behavior
All tests pass even with pydantic installed.
Pylint version
3.0.2OS / Environment
OpenIndiana
Additional dependencies
No response
Metadata
Metadata
Assignees
Labels
HacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsMaintenanceDiscussion or action around maintaining pylint or the dev workflowDiscussion or action around maintaining pylint or the dev workflow