Hello,

While I can't confirm the original error in the bug report, I can confirm that the autopkgtests fail with Python 3.11, and require some fixes.

I have uploaded a fix for this to Ubuntu, the delta is attached. I also uploaded this to DELAYED/2 (the fix is non-intrusive and only affects the test suite, so it should be safe). Please let me know if you would like this delayed further, cancelled, or expedited.

Thanks,
--
Simon Quigley
si...@tsimonq2.net
tsimonq2 on LiberaChat and OFTC
@tsimonq2:linuxdelta.com on Matrix
5C7A BEA2 0F86 3045 9CC8
C8B5 E27F 2CF8 458C 2FA4
diff -Nru silx-1.1.0+dfsg/debian/changelog silx-1.1.0+dfsg/debian/changelog
--- silx-1.1.0+dfsg/debian/changelog	2022-11-04 15:54:24.000000000 +0000
+++ silx-1.1.0+dfsg/debian/changelog	2023-01-26 22:56:43.000000000 +0000
@@ -1,3 +1,9 @@
+silx (1.1.0+dfsg-3ubuntu1) lunar; urgency=medium
+
+  * Add a patch fixing the build with Python 3.11.
+
+ -- Simon Quigley <tsimo...@ubuntu.com>  Thu, 26 Jan 2023 16:56:43 -0600
+
 silx (1.1.0+dfsg-3) unstable; urgency=medium
 
   * do not run test which use lot's of memory
diff -Nru silx-1.1.0+dfsg/debian/control silx-1.1.0+dfsg/debian/control
--- silx-1.1.0+dfsg/debian/control	2022-11-04 15:54:24.000000000 +0000
+++ silx-1.1.0+dfsg/debian/control	2023-01-26 22:56:43.000000000 +0000
@@ -1,5 +1,6 @@
 Source: silx
-Maintainer: Debian Science Maintainers <debian-science-maintain...@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Science Maintainers <debian-science-maintain...@lists.alioth.debian.org>
 Uploaders:
  Jerome Kieffer <jerome.kief...@esrf.fr>,
  Picca Frédéric-Emmanuel <pi...@debian.org>,
diff -Nru silx-1.1.0+dfsg/debian/patches/0008-python3.11-fix.patch silx-1.1.0+dfsg/debian/patches/0008-python3.11-fix.patch
--- silx-1.1.0+dfsg/debian/patches/0008-python3.11-fix.patch	1970-01-01 00:00:00.000000000 +0000
+++ silx-1.1.0+dfsg/debian/patches/0008-python3.11-fix.patch	2023-01-26 22:56:38.000000000 +0000
@@ -0,0 +1,27 @@
+Description: Remove special-case for Python 3.11
+Author: Simon Quigley <tsimo...@debian.org>
+Origin: vendor
+Last-Update: 2023-01-26
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/silx/gui/utils/testutils.py
++++ b/src/silx/gui/utils/testutils.py
+@@ -141,14 +141,10 @@ class TestCaseQt(unittest.TestCase):
+ 
+     def _currentTestSucceeded(self):
+         if hasattr(self, '_outcome'):
+-            if hasattr(self, '_feedErrorsToResult'):
+-                # For Python 3.4 -3.10
+-                result = self.defaultTestResult()  # these 2 methods have no side effects
+-                if hasattr(self._outcome, 'errors'):
+-                    self._feedErrorsToResult(result, self._outcome.errors)
+-            else:
+-                # Python 3.11+
+-                result = self._outcome.result
++            # For Python 3.4 -3.10
++            result = self.defaultTestResult()  # these 2 methods have no side effects
++            if hasattr(self._outcome, 'errors'):
++                self._feedErrorsToResult(result, self._outcome.errors)
+         else:
+             # For Python < 3.4
+             result = getattr(self, '_outcomeForDoCleanups', self._resultForDoCleanups)
diff -Nru silx-1.1.0+dfsg/debian/patches/series silx-1.1.0+dfsg/debian/patches/series
--- silx-1.1.0+dfsg/debian/patches/series	2022-11-04 15:54:24.000000000 +0000
+++ silx-1.1.0+dfsg/debian/patches/series	2023-01-26 22:54:36.000000000 +0000
@@ -5,3 +5,4 @@
 0005-removed-hdf5plugin-from-full-dependencies.patch
 0007-python3.10-fix.patch
 0007-do-not-install-scipy_spatial-COPYING.txt.patch
+0008-python3.11-fix.patch

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to