Skip to content

Commit f04c2f3

Browse files
committed
Fixed all tests on main
1 parent 922efc0 commit f04c2f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_wrappers.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ def test_load_data():
5050
)
5151

5252
for name in dataset_names:
53-
dataset = load_data(name, train=False, data_dir=Path.cwd() / "Data", transform=trans)
54-
55-
im, _ = dataset.__getitem__(0)
53+
dataset, _, _ = load_data(
54+
name, train=False, data_dir=Path.cwd() / "Data", transform=trans
55+
)
56+
im, _ = dataset[0]
5657

5758
assert dataset.__len__() != 0
5859
assert type(im) is th.Tensor and len(im.size()) == 3

0 commit comments

Comments
 (0)