Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion src/silx/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,18 @@ def pytest_configure(config):
"ignore:Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.:UserWarning",
# Remove __array__ ignore once h5py v3.12 is released
"ignore:__array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.:DeprecationWarning",
"ignore::pyopencl.RepeatedKernelRetrieval",
# Deprecated pyparsing usage in matplotlib: https://github.com/matplotlib/matplotlib/issues/30617
"ignore::DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore::DeprecationWarning:matplotlib._mathtext",
"ignore::DeprecationWarning:pyparsing.util",
)
try:
import pyopencl
except:
pass
else:
if "RepeatedKernelRetrieval" in dir(pyopencl):
_FILTERWARNINGS = _FILTERWARNINGS + ("ignore::pyopencl.RepeatedKernelRetrieval",)


def pytest_collection_modifyitems(items):
Expand Down
9 changes: 8 additions & 1 deletion src/silx/io/test/test_nxdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@

__authors__ = ["P. Knobel"]
__license__ = "MIT"
__date__ = "24/03/2020"
__date__ = "02/12/2025"


import os
import tempfile
import unittest

Expand Down Expand Up @@ -490,6 +491,12 @@ def setUp(self):
tmp.file.close()
self.h5fname = tmp.name

def tearDown(self):
try:
os.unlink(self.h5fname)
except Exception as err:
print(f"{type(err).__name__}: {err}\nWhile deleting `{self.h5fname}`")

def testSimpleSave(self):
sig = numpy.array([0, 1, 2])
a0 = numpy.array([2, 3, 4])
Expand Down
Loading