Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions tests/test_kvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sys
import numpy as np
import pytest
import warnings

import importlib.util
if importlib.util.find_spec('GSASII') is None:
Expand Down Expand Up @@ -78,15 +79,19 @@

try:
import seekpath
k_search = kvs.kVector(
brav_type,
pcell,
ppos,
nums,
nuc_p,
spos,
threshold
)
# 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,
nums,
nuc_p,
spos,
threshold
)
except ModuleNotFoundError:
k_search = None

Expand Down
Loading