Skip to content

Commit

Permalink
fix: test delta-r + metric return with and without optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Jan 19, 2024
1 parent ad1ec43 commit aeda13a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_nanoevents_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,13 +537,14 @@ def test_inherited_method_transpose(lcoord, threecoord, twocoord):
assert record_arrays_equal(b - c, -(c - b))


def test_dask_metric_table_and_nearest():
@pytest.mark.parametrize("optimization_enabled", [True, False])
def test_dask_metric_table_and_nearest(optimization_enabled):
import dask
from dask_awkward.lib.testutils import assert_eq

from coffea.nanoevents import NanoEventsFactory

with dask.config.set({"awkward.optimization.enabled": False}):
with dask.config.set({"awkward.optimization.enabled": optimization_enabled}):
eagerevents = NanoEventsFactory.from_root(
{"tests/samples/nano_dy.root": "Events"},
delayed=False,
Expand Down

0 comments on commit aeda13a

Please sign in to comment.