Bug 2481413
| Summary: | pylint fails to build with Python 3.15: 4 test failures: ModuleNotFoundError: 'namespace_package' must be imported before finding 'namespace_package.lower_level'. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | pylint | Assignee: | Gwyn Ciesla <gwync> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | fti-bugs, gwync, ksurma, mhroncok, orion, wamuir1212 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-06-17 18:54:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2412434, 2433833, 2433836, 2485733, 2485893, 2485922, 2485932, 2486001 | ||
|
Description
Karolina Surma
2026-05-26 09:56:31 UTC
*** Bug 2485740 has been marked as a duplicate of this bug. ***
Pylint now builds with only one error for me in mock with fedora-rawhide-python315-b1:
=================================== FAILURES ===================================
__________________ test_functional[unspecified_encoding_py38] __________________
[gw6] linux -- Python 3.15.0 /usr/bin/python3
self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f7fc1344fa0>
def runTest(self) -> None:
> self._runTest()
E AssertionError: Wrong message(s) raised for "unspecified_encoding_py38.py":
E
E Unexpected in testdata:
E 77: unspecified-encoding (times 1)
E
E Actual pylint output for this file:
E OutputLine(symbol='unspecified-encoding', lineno=13, column=0, end_lineno=13, end_column=14, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=14, column=0, end_lineno=14, end_column=20, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=15, column=0, end_lineno=15, end_column=20, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=16, column=0, end_lineno=16, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=17, column=0, end_lineno=17, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=26, column=5, end_lineno=26, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=29, column=5, end_lineno=29, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=33, column=5, end_lineno=33, end_column=45, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=38, column=0, end_lineno=38, end_column=17, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=39, column=0, end_lineno=39, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=40, column=0, end_lineno=40, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=41, column=0, end_lineno=41, end_column=37, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=50, column=5, end_lineno=50, end_column=22, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=53, column=5, end_lineno=53, end_column=37, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=57, column=5, end_lineno=57, end_column=48, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=66, column=0, end_lineno=66, end_column=26, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=67, column=0, end_lineno=67, end_column=39, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=68, column=0, end_lineno=68, end_column=50, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=75, column=0, end_lineno=75, end_column=35, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=76, column=0, end_lineno=76, end_column=50, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=77, column=0, end_lineno=77, end_column=61, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=81, column=0, end_lineno=81, end_column=21, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=82, column=0, end_lineno=82, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=83, column=0, end_lineno=83, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=84, column=0, end_lineno=84, end_column=39, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=149, column=0, end_lineno=149, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=152, column=0, end_lineno=152, end_column=28, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=155, column=0, end_lineno=155, end_column=26, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=158, column=0, end_lineno=158, end_column=35, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='bad-open-mode', lineno=161, column=0, end_lineno=161, end_column=25, object='', msg='"None" is not a valid mode for open.', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=161, column=0, end_lineno=161, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='bad-open-mode', lineno=164, column=0, end_lineno=164, end_column=19, object='', msg='"2" is not a valid mode for open.', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=164, column=0, end_lineno=164, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='bad-open-mode', lineno=176, column=0, end_lineno=176, end_column=24, object='', msg='"5" is not a valid mode for open.', confidence='INFERENCE')
E OutputLine(symbol='unspecified-encoding', lineno=176, column=0, end_lineno=176, end_column=24, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='bad-open-mode', lineno=177, column=0, end_lineno=177, end_column=27, object='', msg='"5" is not a valid mode for open.', confidence='INFERENCE')
E OutputLine(symbol='unspecified-encoding', lineno=177, column=0, end_lineno=177, end_column=27, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH')
E OutputLine(symbol='unspecified-encoding', lineno=180, column=5, end_lineno=180, end_column=29, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE')
E OutputLine(symbol='unspecified-encoding', lineno=183, column=0, end_lineno=183, end_column=29, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE')
E OutputLine(symbol='unspecified-encoding', lineno=186, column=0, end_lineno=186, end_column=44, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE')
E OutputLine(symbol='unspecified-encoding', lineno=193, column=0, end_lineno=193, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE')
../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/lint_module_test.py:145: AssertionError
=========================== short test summary info ============================
FAILED tests/test_functional.py::test_functional[unspecified_encoding_py38]
=========== 1 failed, 1989 passed, 257 skipped, 5 xfailed in 43.94s ============
However, when attempting to build again, it builds successfully.
Failure in Koji: =================================== FAILURES =================================== ____________ TestImportsChecker.test_relative_beyond_top_level_two _____________ [gw0] linux -- Python 3.15.0 /usr/bin/python3 self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/regrtest_data/beyond_top_two/namespace_package/lower_level']) > ??? E KeyError: 'namespace_package' <frozen importlib._bootstrap_external>:1094: KeyError The above exception was the direct cause of the following exception: capsys = <_pytest.capture.CaptureFixture object at 0x7f6ce7eae7b0> @staticmethod def test_relative_beyond_top_level_two(capsys: CaptureFixture[str]) -> None: > Run( [ f"{os.path.join(REGR_DATA, 'beyond_top_two')}", "-d all", "-e relative-beyond-top-level", ], exit=False, ) tests/checkers/unittest_imports.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/_run.py:41: in __init__ super().__init__(args, reporter, exit) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/run.py:239: in __init__ linter.check(args) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:722: in check ast_per_fileitem = self._get_asts(fileitems, data, progress_reporter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:740: in _get_asts for fileitem in fileitems: ^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:908: in _iterate_file_descrs for descr in self._expand_files(files_or_modules).values(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:919: in _expand_files result, errors = expand_modules( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:171: in expand_modules modpath = _modpath_from_file( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:22: in _modpath_from_file return modutils.modpath_from_file_with_callback( # type: ignore[no-any-return] /usr/lib/python3.15/site-packages/astroid/modutils.py:298: in modpath_from_file_with_callback if is_package_cb(pathname, modpath[:-1]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:20: in _is_package_cb return modutils.check_modpath_has_init(inner_path, parts) or is_namespace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/modutils.py:229: in check_modpath_has_init old_namespace = util.is_namespace(".".join(modpath)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/interpreter/_import/util.py:47: in is_namespace found_spec = _find_spec_from_path( <frozen importlib.util>:54: in _find_spec_from_path ??? <frozen importlib._bootstrap>:1222: in _find_spec ??? <frozen importlib._bootstrap_external>:1279: in find_spec ??? <frozen importlib._bootstrap_external>:1077: in __init__ ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/regrtest_data/beyond_top_two/namespace_package/lower_level']) > ??? E ModuleNotFoundError: 'namespace_package' must be imported before finding 'namespace_package.lower_level'. <frozen importlib._bootstrap_external>:1096: ModuleNotFoundError _________________________ test_class_diagrams[pep420] __________________________ [gw5] linux -- Python 3.15.0 /usr/bin/python3 testfile = FunctionalPyreverseTestfile(source=PosixPath('/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/pyreverse/fu...20/pep420.py'), options={'source_roots': ['../..'], 'output_formats': ['mmd', 'dot', 'puml'], 'command_line_args': []}) tmp_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/popen-gw5/test_class_diagrams_pep420_0') @pytest.mark.parametrize( "testfile", CLASS_DIAGRAM_TESTS, ids=CLASS_DIAGRAM_TEST_IDS, ) def test_class_diagrams(testfile: FunctionalPyreverseTestfile, tmp_path: Path) -> None: input_file = testfile.source input_path = os.path.dirname(input_file) if testfile.options["source_roots"]: source_roots = ",".join( [ os.path.realpath( os.path.expanduser(os.path.join(input_path, source_root)) ) for source_root in testfile.options["source_roots"] ] ) else: source_roots = "" for output_format in testfile.options["output_formats"]: args = ["-o", f"{output_format}", "-d", str(tmp_path)] if source_roots: args += ["--source-roots", source_roots] args.extend(testfile.options["command_line_args"]) args += [str(input_file)] exit_code = Run(args).run() assert exit_code == 0 > assert testfile.source.with_suffix(f".{output_format}").read_text( encoding="utf8" ) == (tmp_path / f"classes.{output_format}").read_text(encoding="utf8") E assert 'digraph "cla...solid"];\n}\n' == 'digraph "cla...solid"];\n}\n' E E digraph "classes" { E rankdir=BT E charset="utf-8" E - "/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/pyreverse/functional/class_diagrams/namespaces/pep420/pep420.py.PEP420" [color="black", fontcolor="black", label=<{PEP420|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"]; E + "namespaces.pep420.pep420.PEP420" [color="black", fontcolor="black", label=<{PEP420|<br ALIGN="LEFT"/>|}>, shape="record", style="solid"]; E } tests/pyreverse/test_pyreverse_functional.py:48: AssertionError __________________ test_recursive_implicit_namespace_wrapper ___________________ [gw2] linux -- Python 3.15.0 /usr/bin/python3 self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/regrtest_data/pep420/wrapper/project/namespace/package']) > ??? E KeyError: 'namespace' <frozen importlib._bootstrap_external>:1094: KeyError The above exception was the direct cause of the following exception: def test_recursive_implicit_namespace_wrapper() -> None: > run = Run( [ "--recursive", "y", "--source-roots", join(REGRTEST_DATA_DIR, "pep420", "wrapper", "project"), join(REGRTEST_DATA_DIR, "pep420", "wrapper"), ], exit=False, ) tests/lint/unittest_lint.py:1169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/_run.py:41: in __init__ super().__init__(args, reporter, exit) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/run.py:239: in __init__ linter.check(args) ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:722: in check ast_per_fileitem = self._get_asts(fileitems, data, progress_reporter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:740: in _get_asts for fileitem in fileitems: ^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:908: in _iterate_file_descrs for descr in self._expand_files(files_or_modules).values(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/pylinter.py:919: in _expand_files result, errors = expand_modules( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:171: in expand_modules modpath = _modpath_from_file( ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:22: in _modpath_from_file return modutils.modpath_from_file_with_callback( # type: ignore[no-any-return] /usr/lib/python3.15/site-packages/astroid/modutils.py:298: in modpath_from_file_with_callback if is_package_cb(pathname, modpath[:-1]): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/lint/expand_modules.py:20: in _is_package_cb return modutils.check_modpath_has_init(inner_path, parts) or is_namespace ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/modutils.py:229: in check_modpath_has_init old_namespace = util.is_namespace(".".join(modpath)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.15/site-packages/astroid/interpreter/_import/util.py:47: in is_namespace found_spec = _find_spec_from_path( <frozen importlib.util>:54: in _find_spec_from_path ??? <frozen importlib._bootstrap>:1222: in _find_spec ??? <frozen importlib._bootstrap_external>:1279: in find_spec ??? <frozen importlib._bootstrap_external>:1077: in __init__ ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = NamespacePath(['/builddir/build/BUILD/pylint-4.0.5-build/pylint-4.0.5/tests/regrtest_data/pep420/wrapper/project/namespace/package']) > ??? E ModuleNotFoundError: 'namespace' must be imported before finding 'namespace.package'. <frozen importlib._bootstrap_external>:1096: ModuleNotFoundError =========================== short test summary info ============================ FAILED tests/checkers/unittest_imports.py::TestImportsChecker::test_relative_beyond_top_level_two FAILED tests/pyreverse/test_pyreverse_functional.py::test_class_diagrams[pep420] FAILED tests/lint/unittest_lint.py::test_recursive_implicit_namespace_wrapper See the builds linked from https://src.fedoraproject.org/rpms/pylint/c/4d7565f9d757ba378bfa8a7551f7d58c1692c609?branch=rawhide Hello, Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues This package fails to install and maintainers are advised to take one of the following actions: - Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.) or - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet. or - Orphan the package if you no longer plan to maintain it. If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue. This package may be orphaned in 7+ weeks. This is the first reminder (step 3) from the policy. Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug. From the most recent Koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=146550247 =================================== FAILURES =================================== __________________ test_functional[unspecified_encoding_py38] __________________ [gw30] linux -- Python 3.15.0 /usr/bin/python3 self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7fecbc9456d0> def runTest(self) -> None: > self._runTest() E AssertionError: Wrong message(s) raised for "unspecified_encoding_py38.py": E E Expected in testdata: E 77: unspecified-encoding (times 1) E E Actual pylint output for this file: E OutputLine(symbol='unspecified-encoding', lineno=13, column=0, end_lineno=13, end_column=14, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=14, column=0, end_lineno=14, end_column=20, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=15, column=0, end_lineno=15, end_column=20, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=16, column=0, end_lineno=16, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=17, column=0, end_lineno=17, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=26, column=5, end_lineno=26, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=29, column=5, end_lineno=29, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=33, column=5, end_lineno=33, end_column=45, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=38, column=0, end_lineno=38, end_column=17, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=39, column=0, end_lineno=39, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=40, column=0, end_lineno=40, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=41, column=0, end_lineno=41, end_column=37, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=50, column=5, end_lineno=50, end_column=22, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=53, column=5, end_lineno=53, end_column=37, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=57, column=5, end_lineno=57, end_column=48, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=66, column=0, end_lineno=66, end_column=26, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=67, column=0, end_lineno=67, end_column=39, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=68, column=0, end_lineno=68, end_column=50, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=75, column=0, end_lineno=75, end_column=35, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=76, column=0, end_lineno=76, end_column=50, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=81, column=0, end_lineno=81, end_column=21, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=82, column=0, end_lineno=82, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=83, column=0, end_lineno=83, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=84, column=0, end_lineno=84, end_column=39, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=149, column=0, end_lineno=149, end_column=23, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=152, column=0, end_lineno=152, end_column=28, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=155, column=0, end_lineno=155, end_column=26, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=158, column=0, end_lineno=158, end_column=35, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='bad-open-mode', lineno=161, column=0, end_lineno=161, end_column=25, object='', msg='"None" is not a valid mode for open.', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=161, column=0, end_lineno=161, end_column=25, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='bad-open-mode', lineno=164, column=0, end_lineno=164, end_column=19, object='', msg='"2" is not a valid mode for open.', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=164, column=0, end_lineno=164, end_column=19, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='bad-open-mode', lineno=176, column=0, end_lineno=176, end_column=24, object='', msg='"5" is not a valid mode for open.', confidence='INFERENCE') E OutputLine(symbol='unspecified-encoding', lineno=176, column=0, end_lineno=176, end_column=24, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='bad-open-mode', lineno=177, column=0, end_lineno=177, end_column=27, object='', msg='"5" is not a valid mode for open.', confidence='INFERENCE') E OutputLine(symbol='unspecified-encoding', lineno=177, column=0, end_lineno=177, end_column=27, object='', msg='Using open without explicitly specifying an encoding', confidence='HIGH') E OutputLine(symbol='unspecified-encoding', lineno=180, column=5, end_lineno=180, end_column=29, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE') E OutputLine(symbol='unspecified-encoding', lineno=183, column=0, end_lineno=183, end_column=29, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE') E OutputLine(symbol='unspecified-encoding', lineno=186, column=0, end_lineno=186, end_column=44, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE') E OutputLine(symbol='unspecified-encoding', lineno=193, column=0, end_lineno=193, end_column=34, object='', msg='Using open without explicitly specifying an encoding', confidence='INFERENCE') ../BUILDROOT/usr/lib/python3.15/site-packages/pylint/testutils/lint_module_test.py:145: AssertionError =========================== short test summary info ============================ FAILED tests/test_functional.py::test_functional[unspecified_encoding_py38] =========== 1 failed, 1989 passed, 257 skipped, 5 xfailed in 17.40s ============ error: Bad exit status from /var/tmp/rpm-tmp.EweucS (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.EweucS (%check) Child return code was: 1 Also, probably late with these but, possibly relevant: https://github.com/pylint-dev/pylint/issues/10982 https://github.com/pylint-dev/pylint/pull/10800 |