From 10d65c1b8e43f00d03c035282b75b266c05f6d96 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Wed, 9 Oct 2024 18:11:51 +0200 Subject: [PATCH] tests: remove workaround for empty files Inactive tables no longer produce an empty file, even if requested --- tests/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index c8fe2c3..27e7da5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,6 @@ from pathlib import Path from typing import Any from unittest import TestCase -import warnings import numpy as np import shutil @@ -267,7 +266,4 @@ def load_table(fname: Path) -> np.array: Loads a GRAY output file as a structured numpy array (columns are named as in the file header) ''' - # ignore warnings about empty files - with warnings.catch_warnings(): - warnings.simplefilter("ignore") - return np.genfromtxt(fname, names=True, skip_header=21, ndmin=1) + return np.genfromtxt(fname, names=True, skip_header=21, ndmin=1)