Skip to content

Commit 2f97340

Browse files
committed
Fix a DeprecationWarning test with a more specific error msg
1 parent b86bee7 commit 2f97340

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ANNOUNCE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Announcing Python-Blosc2 3.5.1
22
==============================
33

4-
This release:
4+
In this release:
55
✅ Dramatically reduced memory usage when computing slices of lazy expressions
66
(up to 20x less memory)
77
✅ Added fast path for small slices that fit in memory (up to 20x faster)

tests/ndarray/test_transpose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def test_disk():
226226
def test_transpose(shape_chunks_blocks_2d, dtype_fixture):
227227
shape, chunks, blocks = shape_chunks_blocks_2d
228228
a = blosc2.linspace(0, 1, shape=shape, chunks=chunks, blocks=blocks, dtype=dtype_fixture)
229-
with pytest.warns(DeprecationWarning):
229+
with pytest.warns(DeprecationWarning, match="^transpose is deprecated"):
230230
at = blosc2.transpose(a)
231231

232232
na = a[:]

0 commit comments

Comments
 (0)