Bug 2033554 - satyr fails to build with Python 3.11: AttributeError: 'TestCoreFrame' object has no attribute 'assertEquals'
Summary: satyr fails to build with Python 3.11: AttributeError: 'TestCoreFrame' object...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: satyr
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matej Grabovsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-12-17 09:06 UTC by Tomáš Hrnčiar
Modified: 2022-01-14 11:27 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-14 11:27:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-12-17 09:06:21 UTC
satyr fails to build with Python 3.11.0a3.

======================================================================
ERROR: test_str (__main__.TestCoreFrame)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/satyr-0.38/tests/testsuite.dir/07/../../python/core.py", line 182, in test_str
    self.assertEquals(out, '[0x0000003739a35935] raise cc10c72da62c93033e227ffbe2670f2c4fbbde1a+0x35935 '
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TestCoreFrame' object has no attribute 'assertEquals'

Removed many old deprecated unittest features:
    TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf,
    failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in
    Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals,
    assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in
    Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5).

https://bugs.python.org/issue45162
https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/03054531-satyr/

For all our attempts to build satyr with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/satyr/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Matej Grabovsky 2021-12-17 09:14:37 UTC
This has been fixed upstream already: https://github.com/abrt/satyr/commit/f8e684b74afcd06569a2f7ecc96e029e42b7ebbb

We only need to make a new release now.

Comment 2 Matej Grabovsky 2022-01-14 11:27:55 UTC
The update has just been pushed to Rawhide stable: https://bodhi.fedoraproject.org/updates/FEDORA-2022-f2c7db3044


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