Bug 2431598

Summary: python-anyio fails to build with Python 3.15: test_properties and test_is_reserved raise AssertionError
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-anyioAssignee: Carl George 🎩 <carl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, code, ksurma, mhroncok, python-packagers-sig
Target Milestone: ---Flags: fedora-admin-xmlrpc: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-anyio-4.12.1-3.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-21 23:20:23 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    

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.