Skip to content

Commit 245b699

Browse files
committed
Fix PEP issues
Signed-off-by: Sebastien ESKENAZI <[email protected]>
1 parent a44fd86 commit 245b699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_multiimagefolder(self):
109109

110110
# test if the datasets outputs all images correctly
111111
for i in range(len(dataset)):
112-
self.assertEqual([ true_samples[i][0], true_samples[i][1] ], dataset[i])
112+
self.assertEqual([true_samples[i][0], true_samples[i][1]], dataset[i])
113113

114114
# redo all tests with specified valid image files
115115
dataset = torchvision.datasets.MultiImageFolder(directories=directories, loader=lambda x: x,
@@ -123,7 +123,7 @@ def test_multiimagefolder(self):
123123

124124
# test if the datasets outputs all images correctly
125125
for i in range(len(dataset)):
126-
self.assertEqual([ true_samples[i][0], true_samples[i][1] ], dataset[i])
126+
self.assertEqual([true_samples[i][0], true_samples[i][1]], dataset[i])
127127

128128
@mock.patch('torchvision.datasets.mnist.download_and_extract_archive')
129129
def test_mnist(self, mock_download_extract):

0 commit comments

Comments
 (0)