Skip to content

Commit 0e12153

Browse files
committed
Applied pre-commit hook
1 parent 55dd018 commit 0e12153

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/test_mathematical.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,7 @@ def test_power(self, dtype, lhs, rhs):
11131113
def test_subtract(self, dtype, lhs, rhs):
11141114
self._test_mathematical("subtract", dtype, lhs, rhs, check_type=False)
11151115

1116+
11161117
class TestNextafter:
11171118
@pytest.mark.parametrize("dt", get_float_dtypes())
11181119
@pytest.mark.parametrize(
@@ -1145,7 +1146,7 @@ def test_float_nan(self, dt):
11451146
expected = numpy.nextafter(a, numpy.nan)
11461147
assert_equal(result, expected)
11471148

1148-
@pytest.mark.parametrize("val", [0x7c00, 0x8000], ids=["val1", "val2"])
1149+
@pytest.mark.parametrize("val", [0x7C00, 0x8000], ids=["val1", "val2"])
11491150
def test_f16_strides(self, val):
11501151
a = numpy.arange(val, dtype=numpy.uint16).astype(numpy.float16)
11511152
hinf = numpy.array((numpy.inf,), dtype=numpy.float16)
@@ -1163,7 +1164,7 @@ def test_f16_strides(self, val):
11631164
expected = numpy.nextafter(a[1:], -hinf)
11641165
assert_equal(result, expected)
11651166

1166-
@pytest.mark.parametrize("val", [0x7c00, 0x8000], ids=["val1", "val2"])
1167+
@pytest.mark.parametrize("val", [0x7C00, 0x8000], ids=["val1", "val2"])
11671168
def test_f16_array_inf(self, val):
11681169
a = numpy.arange(val, dtype=numpy.uint16).astype(numpy.float16)
11691170
hinf = numpy.array((numpy.inf,), dtype=numpy.float16)
@@ -1195,7 +1196,7 @@ def test_f16_inf(self, sign1, sign2):
11951196
expected = numpy.nextafter(hinf1, hinf2)
11961197
assert_equal(result, expected)
11971198

1198-
@pytest.mark.parametrize("val", [0x7c00, 0x8000], ids=["val1", "val2"])
1199+
@pytest.mark.parametrize("val", [0x7C00, 0x8000], ids=["val1", "val2"])
11991200
def test_f16_array_nan(self, val):
12001201
a = numpy.arange(val, dtype=numpy.uint16).astype(numpy.float16)
12011202
nan = numpy.array((numpy.nan,), dtype=numpy.float16)
@@ -1220,7 +1221,7 @@ def test_f16_array_nan(self, val):
12201221
def test_f16_inf_nan(self, val1, val2):
12211222
v1 = numpy.array((val1,), dtype=numpy.float16)
12221223
v2 = numpy.array((val2,), dtype=numpy.float16)
1223-
iv1, iv2 =dpnp.array(v1), dpnp.array(v2)
1224+
iv1, iv2 = dpnp.array(v1), dpnp.array(v2)
12241225

12251226
result = dpnp.nextafter(iv1, iv2)
12261227
expected = numpy.nextafter(v1, v2)

tests/third_party/cupy/math_tests/test_floating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
2-
import pytest
32

43
import numpy
4+
import pytest
55

66
import dpnp as cupy
77
from tests.helper import has_support_aspect64

0 commit comments

Comments
 (0)