Skip to content

Commit

Permalink
[test] re-enable extraction tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Feb 24, 2021
1 parent 9c58f2d commit 7fafebb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/test_datasets_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def test_download_url_dispatch_download_from_google_drive(self, mock):

mock.assert_called_once_with(id, root, filename, md5)

@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 @@ -114,7 +113,6 @@ 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 @@ -130,7 +128,6 @@ 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 @@ -146,7 +143,6 @@ 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 7fafebb

Please sign in to comment.