Skip to content

Commit 4571036

Browse files
authored
Disable test_download_charngram_vectors on Linux CI (#2161) (#2165)
1 parent 9a9c181 commit 4571036

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/torchtext_unittest/test_build.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3
22
"""Tests that requires external resources (Network access to fetch dataset)"""
33
import os
4+
import platform
5+
import unittest
46

57
import torch
68
import torchtext.data
@@ -64,6 +66,8 @@ def test_vectors_get_vecs(self) -> None:
6466
self.assertEqual(token_one_vec.shape[0], vec.dim)
6567
self.assertEqual(vec[tokens[0].lower()], token_one_vec)
6668

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.")
6771
@third_party_download
6872
def test_download_charngram_vectors(self) -> None:
6973
# Build a vocab and get vectors twice to test caching.

0 commit comments

Comments
 (0)