Skip to content

Commit 8f6694a

Browse files
authored
Update test_shape.py
Removing a non-sensical test
1 parent 3635db0 commit 8f6694a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/xtensor/test_shape.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,6 @@ def test_squeeze_errors():
346346
with pytest.raises(ValueError, match="has static size .* not 1"):
347347
x1.squeeze("city")
348348

349-
# Symbolic shape: dim is not 1 at runtime → should raise
350-
x2 = xtensor("x2", dims=("a", "b", "c")) # shape unknown
351-
y2 = x2.squeeze("b")
352-
x2_test = xr_arange_like(xtensor(dims=x2.dims, shape=(2, 2, 3)))
353-
fn2 = xr_function([x2], y2)
354-
with pytest.raises(Exception):
355-
fn2(x2_test)
356-
357349

358350
def test_expand_dims():
359351
"""Test expand_dims."""

0 commit comments

Comments
 (0)