[med-svn] [Git][med-team/pyranges][master] 2 commits: fix-test_unary.patch: new.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Fri Feb 23 09:00:10 GMT 2024



Étienne Mollier pushed to branch master at Debian Med / pyranges


Commits:
51a48f3a by Étienne Mollier at 2024-02-23T08:41:04+01:00
fix-test_unary.patch: new.

This patch fixes a remaining test failure affecting dtype conversion.

- - - - -
1c779261 by Étienne Mollier at 2024-02-23T09:58:29+01:00
d/control: move to pybuild autopkgtest.

This enables non-superficial autopkgtest with minimal implementation.

- - - - -


3 changed files:

- debian/control
- + debian/patches/fix-test_unary.patch
- debian/patches/series


Changes:

=====================================
debian/control
=====================================
@@ -3,7 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
 Uploaders: Steffen Moeller <moeller at debian.org>,
            Étienne Mollier <emollier at debian.org>
 Section: python
-Testsuite: autopkgtest-pkg-python
+Testsuite: autopkgtest-pkg-pybuild
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
                dh-sequence-python3,


=====================================
debian/patches/fix-test_unary.patch
=====================================
@@ -0,0 +1,22 @@
+Description: fix expected cluster result.
+ Somehow, the statement in its original form ceased to reflect the change of
+ dtype to numpy's int32 for the expected result, causing a test failure because
+ the reference data now has wrongly int64 numpy dtype.  Slightly changing the
+ way the assignation of the smaller dtype is done fixes the problem.
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1044064
+Forwarded: no
+Last-Update: 2024-02-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- pyranges.orig/tests/test_unary.py
++++ pyranges/tests/test_unary.py
+@@ -189,7 +189,7 @@
+         new_clusters.append(c)
+ 
+     expected = pr.concat(new_clusters).df
+-    expected.loc[:, "Cluster"] = expected.Cluster.astype(np.int32)
++    expected.Cluster = expected.Cluster.astype(np.int32)
+     # expected = expected.drop_duplicates()
+ 
+     print(expected)


=====================================
debian/patches/series
=====================================
@@ -4,3 +4,4 @@ numpy_1.24.patch
 healthcheck-all.patch
 no_install_depends_cython.patch
 pandas2.0.patch
+fix-test_unary.patch



View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/compare/c2dfc1e3d2f3c6177638255f129ea814ac789c55...1c779261ec7968ebdbbd5a1e9df133e669d825a0

-- 
View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/compare/c2dfc1e3d2f3c6177638255f129ea814ac789c55...1c779261ec7968ebdbbd5a1e9df133e669d825a0
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/20240223/648d3646/attachment-0001.htm>


More information about the debian-med-commit mailing list