Skip to content

Commit

Permalink
[Minor] Capture error in CatFrame edit (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Sep 6, 2023
1 parent d729f3d commit 72e8fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def test_transform_no_env(self, device, d, batch_size, dim, N):
td = TensorDict(dict(zip(keys, key_tensors)), batch_size, device=device)
if dim > 0:
with pytest.raises(
ValueError, match="dim must be > 0 to accomodate for tensordict"
ValueError, match="dim must be < 0 to accomodate for tensordict"
):
cat_frames = CatFrames(N=N, in_keys=keys, dim=dim)
return
Expand Down

0 comments on commit 72e8fa4

Please sign in to comment.