Skip to content

Commit

Permalink
Merge pull request #174 from scipp/fix-warning-filter
Browse files Browse the repository at this point in the history
Avoid unintentionally ignored VisibleDeprecationWarnings
  • Loading branch information
SimonHeybrock authored Nov 2, 2023
2 parents 0deb583 + a24b281 commit a4e8aef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tests/nexus_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a4e8aef

Please sign in to comment.