Bug 2368703 - pylint fails to build with Python 3.14: AssertionError tests/test_functional.py::test_functional
Summary: pylint fails to build with Python 3.14: AssertionError tests/test_functional....
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pylint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371781 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS F43FailsToInstall F44FailsToInstall, RAWHIDEFailsToInstall 2385716 2371705 2371756 2371774 2371933 2372037 2372061 2372100 2372232 2385512
TreeView+ depends on / blocked
 
Reported: 2025-05-27 08:43 UTC by Karolina Surma
Modified: 2025-08-25 16:33 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-25 16:33:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-05-27 08:43:23 UTC
pylint fails to build with Python 3.14.0b1.

I backported https://github.com/pylint-dev/pylint/pull/10385
and got down to 13 failed tests:

FAILED tests/config/pylint_config/test_pylint_config_help.py::test_pylint_config_main_messages
FAILED tests/test_functional.py::test_functional[continue_in_finally] - Asser...
FAILED tests/test_functional.py::test_functional[typing_broken_callable] - As...
FAILED tests/test_functional.py::test_functional[typing_broken_callable_future_import]
FAILED tests/test_functional.py::test_functional[typing_consider_using_union]
FAILED tests/test_functional.py::test_functional[typing_consider_using_union_py310]
FAILED tests/test_functional.py::test_functional[typing_consider_using_union_without_future]
FAILED tests/test_functional.py::test_functional[function_redefined_2540] - A...
FAILED tests/test_functional.py::test_functional[generic_alias_collections]
FAILED tests/test_functional.py::test_functional[generic_alias_mixed_py39] - ...
FAILED tests/test_functional.py::test_functional[generic_alias_typing] - Asse...
FAILED tests/test_functional.py::test_functional[lost_exception] - AssertionE...
FAILED tests/test_functional.py::test_functional[return_in_finally] - Asserti...

Upstream is aware and new commits with support for Python 3.14 arrive, but no release has been issued yet.

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09081322-pylint/

For all our attempts to build pylint with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/pylint/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Karolina Surma 2025-06-11 15:55:31 UTC
*** Bug 2371781 has been marked as a duplicate of this bug. ***

Comment 2 Miro Hrončok 2025-06-16 12:51:05 UTC
A reminder that packages that are not linters or linter plugins etc. should not BuildRequire pylint.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

Comment 3 Tomáš Bžatek 2025-06-16 15:42:41 UTC
(In reply to Miro Hrončok from comment #2)
> A reminder that packages that are not linters or linter plugins etc. should
> not BuildRequire pylint.
> 
> https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters

Thanks for reiterating this, Miro, saved me a lot of time searching for the guidelines :-)

Comment 4 Fedora Fails To Install 2025-06-20 19:54:00 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

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.

Comment 5 Miro Hrončok 2025-08-25 11:05:02 UTC
Gwyn, you ASSIGNED this Bugzilla in June. What is the plan? The Beta Freeze of Fedora 43 starts tomorrow.

Comment 6 Gwyn Ciesla 2025-08-25 16:33:40 UTC
I've disabled tests for now and will pursue further with upstream.


Note You need to log in before you can comment on or make changes to this bug.