Skip to content

Commit

Permalink
Disable test_download_charngram_vectors on Linux CI (#2161) (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayef211 committed Apr 27, 2023
1 parent 9a9c181 commit 4571036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/torchtext_unittest/test_build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
"""Tests that requires external resources (Network access to fetch dataset)"""
import os
import platform
import unittest

import torch
import torchtext.data
Expand Down Expand Up @@ -64,6 +66,8 @@ def test_vectors_get_vecs(self) -> None:
self.assertEqual(token_one_vec.shape[0], vec.dim)
self.assertEqual(vec[tokens[0].lower()], token_one_vec)

# TODO(Nayef211): remove decorator once https://github.com/pytorch/text/issues/1900 is closed
@unittest.skipIf("CI" in os.environ and platform.system() == "Linux", "Test is known to fail on Linux.")
@third_party_download
def test_download_charngram_vectors(self) -> None:
# Build a vocab and get vectors twice to test caching.
Expand Down

0 comments on commit 4571036

Please sign in to comment.