Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 75682ba

Browse files
committed
Enabling windows unit tests
1 parent 2f3b741 commit 75682ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/experimental/test_with_asset.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import os
2-
import platform
2+
3+
# import platform
34
import shutil
45
import tempfile
5-
import unittest
6+
7+
# import unittest
68
from functools import partial
79

810
import torch
@@ -217,7 +219,7 @@ def test_builtin_pretrained_sentencepiece_processor(self):
217219

218220
# we separate out these errors because Windows runs into seg faults when propagating
219221
# exceptions from C++ using pybind11
220-
@unittest.skipIf(platform.system() == "Windows", "Test is known to fail on Windows.")
222+
# @unittest.skipIf(platform.system() == "Windows", "Test is known to fail on Windows.")
221223
def test_sentencepiece_with_dataloader(self):
222224
example_strings = ["the pretrained spm model names"] * 64
223225
ref_results = torch.tensor([[13, 1465, 12824, 304, 24935, 5771, 3776]] * 16, dtype=torch.long)

0 commit comments

Comments
 (0)