Bug 2279549 - python-ZConfig fails to build with Python 3.13: test_filehandler_reopen_thread_safety: AssertionError: Lists differ: [] != ['acquire', 'acquire', 'release', 'release']
Summary: python-ZConfig fails to build with Python 3.13: test_filehandler_reopen_threa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ZConfig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2279981
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-05-07 12:39 UTC by Karolina Surma
Modified: 2024-05-18 14:35 UTC (History)
4 users (show)

Fixed In Version: python-ZConfig-4.1-2.fc41 python-ZConfig-4.1-3.fc41
Clone Of:
Environment:
Last Closed: 2024-05-11 16:19:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github zopefoundation ZConfig issues 96 0 None open Test failure in test_filehandler_reopen_thread_safety on Python 3.13 2024-05-11 15:19:45 UTC

Description Karolina Surma 2024-05-07 12:39:24 UTC
python-ZConfig fails to build with Python 3.13.0a6.

+ /usr/bin/python3 -m zope.testrunner --test-path=src -v
Running tests at level 1
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
.................................................................................................................

Failure in test test_filehandler_reopen_thread_safety (ZConfig.components.logger.tests.test_logger.TestReopeningLogfiles.test_filehandler_reopen_thread_safety)
Traceback (most recent call last):
  File "/usr/lib64/python3.13/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib64/python3.13/unittest/case.py", line 651, in run
    self._callTestMethod(testMethod)
  File "/usr/lib64/python3.13/unittest/case.py", line 606, in _callTestMethod
    if method() is not None:
  File "/builddir/build/BUILD/zconfig-4.1/src/ZConfig/components/logger/tests/test_logger.py", line 714, in test_filehandler_reopen_thread_safety
    self.assertEqual(calls, ["acquire", "acquire", "release", "release"])
  File "/usr/lib64/python3.13/unittest/case.py", line 907, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.13/unittest/case.py", line 1113, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/usr/lib64/python3.13/unittest/case.py", line 1095, in assertSequenceEqual
    self.fail(msg)
  File "/usr/lib64/python3.13/unittest/case.py", line 732, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: [] != ['acquire', 'acquire', 'release', 'release']

Second list contains 4 additional elements.
First extra element 0:
'acquire'

- []
+ ['acquire', 'acquire', 'release', 'release']

https://docs.python.org/3.13/whatsnew/3.13.html

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

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

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Ben Beasley 2024-05-11 15:19:46 UTC
I reported this upstream in https://github.com/zopefoundation/ZConfig/issues/96 with some analysis.

Because I believe the problem is in the instrumentation of locking operations for testing rather than in the library’s functionality, I intend to skip the test on Python 3.13 until upstream addresses the issue.

Comment 2 Ben Beasley 2024-05-11 16:03:23 UTC
(In reply to Ben Beasley from comment #1)
> Because I believe the problem is in the instrumentation of locking
> operations for testing rather than in the library’s functionality, I intend
> to skip the test on Python 3.13 until upstream addresses the issue.

This issue will be closed by Bodhi when I do a build with the test skipped, but please note that this package will continue to FTBFS on Python 3.13 until bug 2279981 is fixed.

Comment 3 Fedora Update System 2024-05-11 16:15:04 UTC
FEDORA-2024-2f8fa19b92 (python-ZConfig-4.1-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2f8fa19b92

Comment 4 Fedora Update System 2024-05-11 16:19:06 UTC
FEDORA-2024-2f8fa19b92 (python-ZConfig-4.1-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2024-05-18 14:31:57 UTC
FEDORA-2024-81415cb496 (python-ZConfig-4.1-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-81415cb496

Comment 6 Fedora Update System 2024-05-18 14:35:11 UTC
FEDORA-2024-81415cb496 (python-ZConfig-4.1-3.fc41) has been pushed to the Fedora 41 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.