From a24b28160092268e137a20901e2ec7b0b71ef8e7 Mon Sep 17 00:00:00 2001 From: Simon Heybrock Date: Wed, 1 Nov 2023 15:59:10 +0100 Subject: [PATCH] Avoid unintentionally ignored VisibleDeprecationWarnings --- pyproject.toml | 2 +- tests/nexus_test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 856e72a4..08454307 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ addopts = "-ra -v --strict-markers -m 'not externalfile'" testpaths = "tests" filterwarnings = [ "error", - "ignore::UserWarning", + "ignore:Failed to load :UserWarning", ] markers = [ "externalfile", diff --git a/tests/nexus_test.py b/tests/nexus_test.py index a8df2bcf..de26e4d4 100644 --- a/tests/nexus_test.py +++ b/tests/nexus_test.py @@ -270,6 +270,7 @@ def test_field_of_utf8_encoded_dataset_is_loaded_correctly(nxroot, string): ) +@pytest.mark.filterwarnings("ignore:Encoding for bytes") def test_field_of_extended_ascii_in_ascii_encoded_dataset_is_loaded_correctly(): # When writing, if we use bytes h5py will write as ascii encoding # 0xb0 = degrees symbol in latin-1 encoding.