From efd105323982bacf914e19717ff562fe5f98b909 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 7 Jan 2026 02:17:33 +0000 Subject: [PATCH 1/2] Initial plan From 1f5e2e65365941c52b19a17dbafe46e7a6033b31 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 7 Jan 2026 02:21:20 +0000 Subject: [PATCH 2/2] Suppress DeprecationWarning during module-level k_search initialization Co-authored-by: briantoby <9433704+briantoby@users.noreply.github.com> --- tests/test_kvec.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/tests/test_kvec.py b/tests/test_kvec.py index 065fa95a..68ec0519 100644 --- a/tests/test_kvec.py +++ b/tests/test_kvec.py @@ -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: @@ -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