Package: src:xlsxwriter
Version: 3.0.2-2
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
xlsxwriter's autopkg tests fail with Python 3.12:
[...]
249s =================================== FAILURES
===================================
249s ___________ TestCloseWithException.test_workbook_closes_all_handles
____________
249s
249s self = <xlsxwriter.test.workbook.test_close.TestCloseWithException
testMethod=test_workbook_closes_all_handles>
249s
249s def test_workbook_closes_all_handles(self):
249s """Test that close() closes all file handles"""
249s
249s filepath = tempfile.mktemp()
249s
249s warnings.simplefilter('always')
249s with warnings.catch_warnings(record=True) as warnings_emitted:
249s workbook = Workbook(filepath, dict(constant_memory=True))
249s workbook.close()
249s del workbook
249s
249s os.unlink(filepath)
249s
249s > self.assertFalse(warnings_emitted)
249s E AssertionError: [<warnings.WarningMessage object at
0x7f1f82540bc0>, <warnings.WarningMessage object at 0x7f1f82541160>,
<warnings.WarningMessage object at 0x7f1f82541310>] is not false
249s
249s xlsxwriter/test/workbook/test_close.py:44: AssertionError
[...]
249s =========================== short test summary info
============================
249s FAILED
xlsxwriter/test/workbook/test_close.py::TestCloseWithException::test_workbook_closes_all_handles
249s ================ 1 failed, 1568 passed, 2968 warnings in 12.48s
================
249s autopkgtest [20:01:34]: test python3-xlsxwriter:
-----------------------]