Bug 2251790

Summary: python-heapdict fails to build with Python 3.13 (and Python 3.12, Python 3.11 soon): AttributeError: module 'test.support' has no attribute 'run_unittest'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-heapdictAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, python-packagers-sig, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-heapdict-1.0.1-18.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-08 08:16:25 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: 2244836    

Description Karolina Surma 2023-11-27 15:40:14 UTC
python-heapdict fails to build with Python 3.13.0a2 (but will stop with Python 3.12 and Python 3.11 soon too).

Function test.support.test_unittest() has been removed: https://github.com/python/cpython/commit/fc9a5ef1a8894b2c61dbc762be6a8bf90906b621 

+ /usr/bin/python3 test_heap.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/HeapDict-1.0.1/test_heap.py", line 121, in <module>
    test_main(verbose=True)
  File "/builddir/build/BUILD/HeapDict-1.0.1/test_heap.py", line 107, in test_main
    test_support.run_unittest(*test_classes)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'test.support' has no attribute 'run_unittest'

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692195-python-heapdict/

For all our attempts to build python-heapdict with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-heapdict/

Comment 1 Aoife Moloney 2024-02-15 23:05:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.