From 7678d14cdd8e478cb1122d1ab1b395ec5ba42072 Mon Sep 17 00:00:00 2001 From: vmoens Date: Thu, 2 Nov 2023 17:06:22 +0000 Subject: [PATCH] init --- test/test_tensordict.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_tensordict.py b/test/test_tensordict.py index 7cfbe4105..cda4b72d8 100644 --- a/test/test_tensordict.py +++ b/test/test_tensordict.py @@ -2283,8 +2283,8 @@ def test_as_tensor(self, td_name, device): ): td.as_tensor() else: - with pytest.raises(AttributeError): - td.as_tensor() + # checks that it runs + td.as_tensor() def test_items_values_keys(self, td_name, device): torch.manual_seed(1)