Skip to content

Commit 3689643

Browse files
committed
Add comment
1 parent bc997e4 commit 3689643

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

array_api_tests/test_special_cases.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,10 @@ def parse_binary_case_block(case_block: str, func_name: str) -> List[BinaryCase]
12521252
@pytest.mark.parametrize("func_name, func, case", unary_params)
12531253
def test_unary(func_name, func, case):
12541254
with catch_warnings():
1255+
# XXX: We are using example here to generate one example draw, but
1256+
# hypothesis issues a warning from this. We should consider either
1257+
# drawing multiple examples like a normal test, or just hard-coding a
1258+
# single example test case without using hypothesis.
12551259
filterwarnings('ignore', category=NonInteractiveExampleWarning)
12561260
in_value = case.cond_from_dtype(xp.float64).example()
12571261
x = xp.asarray(in_value, dtype=xp.float64)

0 commit comments

Comments
 (0)