From 55466b10e89a19eea48ccd72ec8d65723985da52 Mon Sep 17 00:00:00 2001 From: "George G. Vega Yon" Date: Tue, 26 Sep 2023 11:16:09 -0600 Subject: [PATCH] Moving filtering warnings before loading numpy [skip ci] --- tests/test_basic.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_basic.py b/tests/test_basic.py index 993d231..9f9d65b 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1,11 +1,13 @@ +import warnings + +warnings.filterwarnings("ignore", category=ImportWarning) + from __future__ import annotations + import pydefm as m import numpy as np -import warnings - -warnings.filterwarnings("ignore", category=ImportWarning) y = np.array([0, 10, 3]) x = np.array([1, 2.0, 3.4])