File: test_without_ptscotch.patch

package info (click to toggle)
scotchpy 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,476 kB
  • sloc: python: 4,882; ansic: 68; sh: 34; makefile: 32
file content (16 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: scotchpy/tests/test_dgraph.py
===================================================================
--- scotchpy.orig/tests/test_dgraph.py	2026-03-24 18:18:26.094623451 +0100
+++ scotchpy/tests/test_dgraph.py	2026-03-24 18:19:49.437574908 +0100
@@ -35,7 +35,10 @@
 import scotchpy as SCOTCH
 import numpy as np
 import scotchpy.common as _common
-import scotchpy.dgraph as PTSCOTCH
+try:
+    import scotchpy.dgraph as PTSCOTCH
+except AttributeError:
+    pytest.skip('ptscotch not available', allow_module_level=True)
 from scotchpy.common import _ptscotch_lib, _libptscotch_mpi4py_lib
 import tempfile
 import importlib.resources