We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77931d4 + 1f5e2e6 commit ef4bc0bCopy full SHA for ef4bc0b
1 file changed
tests/test_kvec.py
@@ -8,6 +8,7 @@
8
import sys
9
import numpy as np
10
import pytest
11
+import warnings
12
13
import importlib.util
14
if importlib.util.find_spec('GSASII') is None:
@@ -78,15 +79,19 @@
78
79
80
try:
81
import seekpath
- k_search = kvs.kVector(
82
- brav_type,
83
- pcell,
84
- ppos,
85
- nums,
86
- nuc_p,
87
- spos,
88
- threshold
89
- )
+ # Suppress DeprecationWarning from spglib during module-level initialization
+ # to prevent pytest from treating it as an error during test collection
+ with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
+ k_search = kvs.kVector(
+ brav_type,
+ pcell,
+ ppos,
90
+ nums,
91
+ nuc_p,
92
+ spos,
93
+ threshold
94
+ )
95
except ModuleNotFoundError:
96
k_search = None
97
0 commit comments