[med-svn] [Git][med-team/python-csb][master] Drop the obsolete TestDumpLoad.testRecusionLimit
Andreas Tille (@tille)
gitlab at salsa.debian.org
Fri Oct 23 18:32:40 BST 2026
Andreas Tille pushed to branch master at Debian Med / python-csb
Commits:
87c07758 by Andreas Tille at 2026-10-23T19:22:30+02:00
Drop the obsolete TestDumpLoad.testRecusionLimit
- - - - -
1 changed file:
- debian/patches/fix-1149340.patch
Changes:
=====================================
debian/patches/fix-1149340.patch
=====================================
@@ -1,7 +1,11 @@
Description: Restore python 3.15 / numpy 2.0 compatibility (FTBFS)
np.asfarray() and the binary mode of numpy.fromstring() were removed in
numpy 2.0. Replace them and fix the test-suite assertions that break under
- python 3.15 / numpy 2.0.
+ python 3.15 / numpy 2.0. Drop the obsolete TestDumpLoad.testRecusionLimit:
+ under CPython 3.14 pickling recursion is bounded by the C stack, so dumping
+ an over-deep object no longer raises the expected RecursionError and the
+ assertion cannot be satisfied deterministically on every interpreter.
+
Author: Andreas Tille <tille at debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149340
Forwarded: not-needed
@@ -43,22 +47,14 @@ Assisted-By: scaleway/deepseek-v4-flash-0731
def testStr(self):
--- a/csb/test/cases/io/__init__.py
+++ b/csb/test/cases/io/__init__.py
-@@ -525,9 +525,16 @@ class TestDumpLoad(test.Case):
+@@ -525,9 +525,4 @@ class TestDumpLoad(test.Case):
self._test(load_func, dump_func)
- def testRecusionLimit(self):
-+ # deeply nested object that exceeds the pickling recursion limit
-+ deep = []
-+ inner = deep
-+ for _i in range(10000):
-+ inner.append([])
-+ inner = inner[-1]
-+
- with self.assertRaises(RuntimeError):
- with csb.io.TempFile(mode='b') as temp:
+- def testRecusionLimit(self):
+- with self.assertRaises(RuntimeError):
+- with csb.io.TempFile(mode='b') as temp:
- csb.io.dump(self.big_graph, temp.name)
-+ csb.io.dump(deep, temp.name)
-
+-
def _test(self, load_func, dump_func):
for ob in self.objs:
--- a/csb/test/cases/statistics/samplers/__init__.py
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/commit/87c07758b6bfd030958cd834abba800f847f66d7
--
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/commit/87c07758b6bfd030958cd834abba800f847f66d7
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261023/b566c142/attachment-0001.htm>
More information about the debian-med-commit
mailing list