[med-svn] [Git][med-team/python-cobra][master] 2 commits: Add patch to skip a test on 32-bit

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Wed Sep 20 15:24:22 BST 2023



Nilesh Patra pushed to branch master at Debian Med / python-cobra


Commits:
2e97e24a by Nilesh Patra at 2023-09-20T19:32:29+05:30
Add patch to skip a test on 32-bit

- - - - -
183c29b4 by Nilesh Patra at 2023-09-20T19:51:17+05:30
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/32-bit-test.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-cobra (0.26.3-2) unstable; urgency=medium
+
+  * Team Upload.
+  * Add patch to skip a test on 32-bit
+
+ -- Nilesh Patra <nilesh at debian.org>  Wed, 20 Sep 2023 19:50:59 +0530
+
 python-cobra (0.26.3-1) unstable; urgency=medium
 
   [ Étienne Mollier ]


=====================================
debian/patches/32-bit-test.patch
=====================================
@@ -0,0 +1,29 @@
+Description: Skip a test on 32-bit archs due to precision issues
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2023-09-20
+--- a/tests/test_io/test_mat.py
++++ b/tests/test_io/test_mat.py
+@@ -5,9 +5,15 @@
+ from typing import TYPE_CHECKING, Callable
+ 
+ import pytest
++import platform
+ 
+ from cobra.io import load_matlab_model, read_sbml_model, save_matlab_model
+ 
++# Define a custom marker to skip tests on 32-bit architecture
++skip_on_32bit = pytest.mark.skipif(
++    platform.architecture()[0] == "32bit",
++    reason="Skipping test on 32-bit architecture."
++)
+ 
+ try:
+     import scipy
+@@ -163,6 +169,7 @@
+     assert compare_models(current_model, mat_model_reload) is None
+ 
+ 
++ at skip_on_32bit
+ @pytest.mark.skipif(scipy is None, reason="scipy unavailable")
+ @pytest.mark.parametrize(
+     "dirname, xml_file",


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ mathjax.patch
 xfail_test_show_versions.patch
 ignore_tests.patch
 do-not-seek-for-name.patch
+32-bit-test.patch



View it on GitLab: https://salsa.debian.org/med-team/python-cobra/-/compare/dc315281bf182f42352d396cfd260b57848effe9...183c29b49595ff7afecb791a7870cd248b5c789c

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-cobra/-/compare/dc315281bf182f42352d396cfd260b57848effe9...183c29b49595ff7afecb791a7870cd248b5c789c
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/20230920/0b3c5635/attachment-0001.htm>


More information about the debian-med-commit mailing list