Skip to content

Commit

Permalink
Revert "[test] re-enable extraction tests on windows"
Browse files Browse the repository at this point in the history
This reverts commit 7fafebb.
  • Loading branch information
pmeier committed Mar 10, 2021
1 parent f783bcd commit a22abbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_datasets_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def test_detect_file_type_unknown_partial_ext(self):
with self.assertRaises(RuntimeError):
utils._detect_file_type("foo.bar")

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

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

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

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

0 comments on commit a22abbc

Please sign in to comment.