1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Description: Skip a test on 32-bit archs due to precision issues
Author: Nilesh Patra <nilesh@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
+@skip_on_32bit
@pytest.mark.skipif(scipy is None, reason="scipy unavailable")
@pytest.mark.parametrize(
"dirname, xml_file",
|