Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Nov 9, 2023
1 parent b54bbe8 commit 2e4b680
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_io.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import random
from pathlib import Path

import awkward as ak
Expand Down Expand Up @@ -163,10 +162,10 @@ def f(a, b):
dak.from_map(f, [1, 2], [3, 4, 5])

with pytest.raises(ValueError, match="must be `callable`"):
dak.from_map(5, [1], [2]) # type: ignore
dak.from_map(5, [1], [2])

with pytest.raises(ValueError, match="must be Iterable"):
dak.from_map(f, 1, [1, 2]) # type: ignore
dak.from_map(f, 1, [1, 2])

with pytest.raises(ValueError, match="non-zero length"):
dak.from_map(f, [], [], [])
Expand Down

0 comments on commit 2e4b680

Please sign in to comment.