Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 15, 2024
1 parent bc403b3 commit 9533615
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests-cuda/test_2922a_new_cuda_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import cupy as cp
import numpy as np
import pytest
from numpy.exceptions import AxisError

import awkward as ak
from awkward.forms import (
Expand Down Expand Up @@ -269,7 +270,7 @@ def test_1904_drop_none_all_axes():
assert (
ak.is_none(array, axis=-2).tolist() == ak.is_none(cuda_array, axis=-2).tolist()
)
with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.drop_none(array, axis=-2).tolist()
ak.drop_none(cuda_array, axis=-2).tolist()

Expand All @@ -289,7 +290,7 @@ def test_1904_drop_none_all_axes():
ak.is_none(array2, axis=-2).tolist()
== ak.is_none(cuda_array2, axis=-2).tolist()
)
with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.drop_none(array2, axis=-2).tolist()
ak.drop_none(cuda_array2, axis=-2).tolist()

Expand All @@ -314,7 +315,7 @@ def test_1914_improved_axis_to_posaxis_is_none():

assert ak.is_none(array, axis=2).tolist() == ak.is_none(cuda_array, axis=2).tolist()

with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.is_none(array, axis=3)
ak.is_none(cuda_array, axis=3)

Expand All @@ -326,7 +327,7 @@ def test_1914_improved_axis_to_posaxis_is_none():
ak.is_none(array, axis=-2).tolist() == ak.is_none(cuda_array, axis=-2).tolist()
)

with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.is_none(array, axis=-3)
ak.is_none(cuda_array, axis=-3)

Expand Down Expand Up @@ -360,7 +361,7 @@ def test_1914_improved_axis_to_posaxis_singletons():
== ak.singletons(cuda_array, axis=2).tolist()
)

with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.singletons(array, axis=3)
ak.singletons(cuda_array, axis=3)

Expand All @@ -374,7 +375,7 @@ def test_1914_improved_axis_to_posaxis_singletons():
== ak.singletons(cuda_array, axis=-2).tolist()
)

with pytest.raises(np.AxisError):
with pytest.raises(AxisError):
ak.singletons(array, axis=-3)
ak.singletons(cuda_array, axis=-3)

Expand Down

0 comments on commit 9533615

Please sign in to comment.