Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/prototype/test_with_asset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import platform
import shutil
import tempfile
import unittest
from functools import partial

import torch
Expand Down Expand Up @@ -135,6 +137,8 @@ def test_vocab_from_file(self) -> None:
self.assertEqual(v.get_itos(), expected_itos)
self.assertEqual(dict(v.get_stoi()), expected_stoi)

# 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.")
def test_vocab_from_raw_text_file(self) -> None:
asset_name = "vocab_raw_text_test.txt"
asset_path = get_asset_path(asset_name)
Expand Down