From: =?utf-8?q?=C3=89tienne_Mollier?= <emollier@debian.org>
Date: Sat, 14 Sep 2024 09:48:28 +0200
Subject: skip scipy tests within test_Align_codonalign.
 Note that this patch may be related to #1086108.  Chances are it will
 be removable once the bug is resolved.

Bug-Debian: https://bugs.debian.org/1079439
Forwarded: not-needed
Last-Update: 2024-08-25

This patch is introduced to give some breath to Risc-V CI runners while
the core of the problem is investigated.
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-biopython.orig/Tests/test_Align_codonalign.py
+++ python-biopython/Tests/test_Align_codonalign.py
@@ -8240,6 +8240,12 @@
         self.assertAlmostEqual(dN, 0.0203, places=4)
         self.assertAlmostEqual(dS, 0.0164, places=4)
 
+        import os
+        import sys
+        if os.uname().machine == 'riscv64' or os.uname().machine == 'mips64':
+            print('note: tests involving scipy skipped, '
+                    'they hang on riscv64 and mips64.', file=sys.stderr)
+            return
         try:
             import scipy
         except ImportError:
--- python-biopython.orig/Tests/test_codonalign.py
+++ python-biopython/Tests/test_codonalign.py
@@ -307,6 +307,12 @@
         self.assertAlmostEqual(dN, 0.0203, places=4)
         self.assertAlmostEqual(dS, 0.0164, places=4)
 
+        import os
+        import sys
+        if os.uname().machine == 'riscv64' or os.uname().machine == 'mips64':
+            print('note: tests involving scipy skipped, '
+                    'they hang on riscv64 and mips64.', file=sys.stderr)
+            return
         try:
             import scipy
         except ImportError:
