We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9c181 commit 4571036Copy full SHA for 4571036
test/torchtext_unittest/test_build.py
@@ -1,6 +1,8 @@
1
#!/usr/bin/env python3
2
"""Tests that requires external resources (Network access to fetch dataset)"""
3
import os
4
+import platform
5
+import unittest
6
7
import torch
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)
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.")
71
@third_party_download
72
def test_download_charngram_vectors(self) -> None:
73
# Build a vocab and get vectors twice to test caching.
0 commit comments