Bug 2431598 - python-anyio fails to build with Python 3.15: test_properties and test_is_reserved raise AssertionError
Summary: python-anyio fails to build with Python 3.15: test_properties and test_is_res...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-anyio
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George 🎩
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-01-21 13:41 UTC by Karolina Surma
Modified: 2026-01-21 23:20 UTC (History)
5 users (show)

Fixed In Version: python-anyio-4.12.1-3.fc44
Clone Of:
Environment:
Last Closed: 2026-01-21 23:20:23 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-2980 0 None None None 2026-01-21 13:41:30 UTC

Description Karolina Surma 2026-01-21 13:41:08 UTC
python-anyio fails to build with Python 3.15.0a5.

______________________ TestPath.test_properties[asyncio] _______________________
tests/test_fileio.py:121: in test_properties
    assert not missing
E   AssertionError: assert not {'__vfspath__'}
___________________ TestPath.test_properties[asyncio+eager] ____________________
tests/test_fileio.py:121: in test_properties
    assert not missing
E   AssertionError: assert not {'__vfspath__'}
________________________ TestPath.test_properties[trio] ________________________
tests/test_fileio.py:121: in test_properties
    assert not missing
E   AssertionError: assert not {'__vfspath__'}
__________________________ TestPath.test_is_reserved ___________________________
tests/test_fileio.py:307: in test_is_reserved
    assert Path("nul").is_reserved() == expected_result
           ^^^^^^^^^^^^^^^^^^^^^^^^^
../BUILDROOT/usr/lib/python3.15/site-packages/anyio/_core/_fileio.py:565: in is_reserved
    return self._path.is_reserved()
           ^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: 'PosixPath' object has no attribute 'is_reserved'

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10039353-python-anyio/

For all our attempts to build python-anyio with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-anyio/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Fedora Update System 2026-01-21 23:15:04 UTC
FEDORA-2026-7d8c4d4949 (python-anyio-4.12.1-3.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7d8c4d4949

Comment 2 Fedora Update System 2026-01-21 23:20:23 UTC
FEDORA-2026-7d8c4d4949 (python-anyio-4.12.1-3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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