Bug 2458632

Summary: python-testscenarios fails to build with Python 3.15: AttributeError: 'TestLoadTests' object has no attribute 'assertEquals'. Did you mean '.assertEqual' instead of '.assertEquals'?
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-testscenariosAssignee: Mikel Olasagasti Uranga <mikel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, ksurma, ktdreyer, mhroncok, mikel, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-testscenarios-0.6.1-1.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-16 20:14:57 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-04-15 09:37:45 UTC
python-testscenarios fails to build with Python 3.15.0a8.

ERROR: testscenarios.tests.test_scenarios.TestLoadTests.test_load_tests_apply_scenarios
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-testscenarios-0.5.0-build/testscenarios-0.5.0/testscenarios/tests/test_scenarios.py", line 196, in test_load_tests_apply_scenarios
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestLoadTests' object has no attribute 'assertEquals'. Did you mean '.assertEqual' instead of '.assertEquals'?
======================================================================
ERROR: testscenarios.tests.test_scenarios.TestLoadTests.test_load_tests_apply_scenarios_old_style
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-testscenarios-0.5.0-build/testscenarios-0.5.0/testscenarios/tests/test_scenarios.py", line 209, in test_load_tests_apply_scenarios_old_style
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'TestLoadTests' object has no attribute 'assertEquals'. Did you mean '.assertEqual' instead of '.assertEquals'?

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/10318845-python-testscenarios/

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

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 Mikel Olasagasti Uranga 2026-04-15 10:22:07 UTC
master branch has the required fixes, but has no release. I opened https://github.com/testing-cabal/testscenarios/issues/21 asking to tag a new release, but if doesn't happen I can cherry-pick the fixes.

Comment 2 Fedora Update System 2026-04-16 20:11:43 UTC
FEDORA-2026-3e693a1348 (python-testscenarios-0.6.1-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-3e693a1348

Comment 3 Fedora Update System 2026-04-16 20:14:57 UTC
FEDORA-2026-3e693a1348 (python-testscenarios-0.6.1-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.