Bug 2458632 - python-testscenarios fails to build with Python 3.15: AttributeError: 'TestLoadTests' object has no attribute 'assertEquals'. Did you mean '.assertEqual' instead of '.assertEquals'?
Summary: python-testscenarios fails to build with Python 3.15: AttributeError: 'TestLo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-testscenarios
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mikel Olasagasti Uranga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-15 09:37 UTC by Karolina Surma
Modified: 2026-04-16 20:14 UTC (History)
6 users (show)

Fixed In Version: python-testscenarios-0.6.1-1.fc45
Clone Of:
Environment:
Last Closed: 2026-04-16 20:14:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github testing-cabal testscenarios issues 21 0 None open 0.6 release / tag missing 2026-04-15 10:22:06 UTC

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.


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