Skip to content

Commit

Permalink
test: reinstate 'deflate', now that it works on MacOS (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed May 9, 2024
1 parent 2c7099d commit fcb5eec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
3 changes: 0 additions & 3 deletions src/uproot/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import numbers
import os
import re
import sys
import warnings
from collections.abc import Iterable
from pathlib import Path
Expand All @@ -28,8 +27,6 @@
import uproot.source.fsspec
import uproot.source.object

macos = sys.platform == "darwin"


def tobytes(array):
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/test_0008_start_interpretation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def test_file_header(use_isal):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_file_header(use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.use_deflate = use_deflate
filename = skhep_testdata.data_path("uproot-Zmumu.root")
Expand Down
21 changes: 7 additions & 14 deletions tests/test_0416_writing_compressed_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def test_ZLIB(use_isal):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_deflate(use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -134,8 +133,7 @@ def test_histogram_ZLIB(tmp_path, use_isal):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_histogram_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -593,8 +591,7 @@ def test_multicompression_5(tmp_path, use_isal):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_multicompression_1_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -628,8 +625,7 @@ def test_multicompression_1_deflate(tmp_path, use_deflate):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_multicompression_2_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -662,8 +658,7 @@ def test_multicompression_2_deflate(tmp_path, use_deflate):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_multicompression_3_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -697,8 +692,7 @@ def test_multicompression_3_deflate(tmp_path, use_deflate):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_multicompression_4_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down Expand Up @@ -730,8 +724,7 @@ def test_multicompression_4_deflate(tmp_path, use_deflate):

@pytest.mark.parametrize("use_deflate", [False, True])
def test_multicompression_5_deflate(tmp_path, use_deflate):
# FIXME: https://github.com/dcwatson/deflate/issues/42
if use_deflate and not uproot._util.macos:
if use_deflate:
pytest.importorskip("deflate")
uproot.ZLIB.library = "deflate"
else:
Expand Down

0 comments on commit fcb5eec

Please sign in to comment.