Skip to content

Commit ac8a5e7

Browse files
colesburysoumith
authored andcommitted
Remove error message assertion (pytorch#480)
Depending on how PyTorch is compiled, the source code for DataLoader might not be fully available which can cause a spurious error in test_dataloader.py
1 parent 798fc16 commit ac8a5e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/test_dataloader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ def _test_error(self, loader):
7878
try:
7979
it.next()
8080
except NotImplementedError:
81-
msg = "".join(traceback.format_exception(*sys.exc_info()))
82-
self.assertTrue("collate_fn" in msg)
8381
errors += 1
8482
except StopIteration:
8583
self.assertEqual(errors,

0 commit comments

Comments
 (0)