[med-svn] [Git][med-team/python-xopen][master] 2 commits: d/p/i386.patch: Fix FTBFS and debci on 32 bit arches
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Fri Oct 1 07:28:26 BST 2021
Nilesh Patra pushed to branch master at Debian Med / python-xopen
Commits:
ab4bc9c4 by Nilesh Patra at 2021-10-01T11:57:51+05:30
d/p/i386.patch: Fix FTBFS and debci on 32 bit arches
- - - - -
c94b8d4d by Nilesh Patra at 2021-10-01T11:58:14+05:30
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/i386.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+python-xopen (1.2.0-2) unstable; urgency=medium
+
+ * d/p/i386.patch: Fix FTBFS and debci on 32 bit arches
+
+ -- Nilesh Patra <nilesh at debian.org> Fri, 01 Oct 2021 11:58:00 +0530
+
python-xopen (1.2.0-1) unstable; urgency=medium
* New upstream version 1.2.0
=====================================
debian/patches/i386.patch
=====================================
@@ -0,0 +1,30 @@
+From: Marcel Martin <marcel.martin at scilifelab.se>
+Date: Thu, 30 Sep 2021 19:03:50 +0200
+Subject: [PATCH] Avoid MemoryError during tests on 32-bit architectures
+
+Thanks to @nileshpatra!
+
+Closes #76
+---
+ tests/test_xopen.py | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_xopen.py b/tests/test_xopen.py
+index 74d45d5..d9da91a 100644
+--- a/tests/test_xopen.py
++++ b/tests/test_xopen.py
+@@ -630,8 +630,11 @@ def test_xopen_falls_back_to_bzip2_open(lacking_pbzip2_permissions):
+
+ def test_open_many_writers(tmp_path, ext):
+ files = []
+- for i in range(1, 61):
+- path = tmp_path / f"{i:03d}.txt.{ext}"
++ # Because lzma.open allocates a lot of memory,
++ # open fewer files to avoid MemoryError on 32-bit architectures
++ n = 21 if ext == ".xz" else 61
++ for i in range(1, n):
++ path = tmp_path / f"{i:03d}.txt{ext}"
+ f = xopen(path, "wb", threads=2)
+ f.write(b"hello")
+ files.append(f)
+
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+i386.patch
View it on GitLab: https://salsa.debian.org/med-team/python-xopen/-/compare/fb5e8fb41bc0e629c60be6b535c3642d1eb5865b...c94b8d4d9aad47675bab79d15dbb1d58a50bdf5b
--
View it on GitLab: https://salsa.debian.org/med-team/python-xopen/-/compare/fb5e8fb41bc0e629c60be6b535c3642d1eb5865b...c94b8d4d9aad47675bab79d15dbb1d58a50bdf5b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211001/ff22bf04/attachment-0001.htm>
More information about the debian-med-commit
mailing list