Skip to content

Commit 943d669

Browse files
style: pre-commit fixes
1 parent 3b98b3f commit 943d669

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

numcodecs/tests/test_compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def test_ensure_bytes_invalid_inputs():
6464
ensure_bytes(e)
6565

6666

67-
@pytest.mark.filterwarnings("ignore:The 'u' type code is deprecated and will be removed in Python 3.16")
67+
@pytest.mark.filterwarnings(
68+
"ignore:The 'u' type code is deprecated and will be removed in Python 3.16"
69+
)
6870
def test_ensure_contiguous_ndarray_invalid_inputs():
6971
# object array not allowed
7072
a = np.array(['Xin chào thế giới'], dtype=object)

numcodecs/tests/test_msgpacks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def test_backwards_compatibility():
5454
codec = MsgPack()
5555
check_backwards_compatibility(codec.codec_id, arrays, [codec])
5656

57-
@pytest.mark.filterwarnings("ignore:Creating an ndarray from ragged nested sequences .* is deprecated.*")
57+
58+
@pytest.mark.filterwarnings(
59+
"ignore:Creating an ndarray from ragged nested sequences .* is deprecated.*"
60+
)
5861
@pytest.mark.parametrize(
5962
("input_data", "dtype"),
6063
[

0 commit comments

Comments
 (0)