Skip to content

Commit a22abbc

Browse files
committed
Revert "[test] re-enable extraction tests on windows"
This reverts commit 7fafebb.
1 parent f783bcd commit a22abbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_datasets_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def test_detect_file_type_unknown_partial_ext(self):
135135
with self.assertRaises(RuntimeError):
136136
utils._detect_file_type("foo.bar")
137137

138+
@unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows')
138139
def test_extract_zip(self):
139140
with get_tmp_dir() as temp_dir:
140141
with tempfile.NamedTemporaryFile(suffix='.zip') as f:
@@ -146,6 +147,7 @@ def test_extract_zip(self):
146147
data = nf.read()
147148
self.assertEqual(data, 'this is the content')
148149

150+
@unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows')
149151
def test_extract_tar(self):
150152
for ext, mode in zip(['.tar', '.tar.gz', '.tgz'], ['w', 'w:gz', 'w:gz']):
151153
with get_tmp_dir() as temp_dir:
@@ -161,6 +163,7 @@ def test_extract_tar(self):
161163
data = nf.read()
162164
self.assertEqual(data, 'this is the content')
163165

166+
@unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows')
164167
def test_extract_tar_xz(self):
165168
for ext, mode in zip(['.tar.xz'], ['w:xz']):
166169
with get_tmp_dir() as temp_dir:
@@ -176,6 +179,7 @@ def test_extract_tar_xz(self):
176179
data = nf.read()
177180
self.assertEqual(data, 'this is the content')
178181

182+
@unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows')
179183
def test_extract_gzip(self):
180184
with get_tmp_dir() as temp_dir:
181185
with tempfile.NamedTemporaryFile(suffix='.gz') as f:

0 commit comments

Comments
 (0)