File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
"""Tests that requires external resources (Network access to fetch dataset)"""
3
3
import os
4
+ import platform
5
+ import unittest
4
6
5
7
import torch
6
8
import torchtext .data
@@ -64,6 +66,8 @@ def test_vectors_get_vecs(self) -> None:
64
66
self .assertEqual (token_one_vec .shape [0 ], vec .dim )
65
67
self .assertEqual (vec [tokens [0 ].lower ()], token_one_vec )
66
68
69
+ # TODO(Nayef211): remove decorator once https://github.com/pytorch/text/issues/1900 is closed
70
+ @unittest .skipIf ("CI" in os .environ and platform .system () == "Linux" , "Test is known to fail on Linux." )
67
71
@third_party_download
68
72
def test_download_charngram_vectors (self ) -> None :
69
73
# Build a vocab and get vectors twice to test caching.
You can’t perform that action at this time.
0 commit comments