Skip to content

Commit ffae6e2

Browse files
committed
mypy
1 parent 81b49cb commit ffae6e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_microxcaling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_mx(
7373
np.testing.assert_allclose(gf_dq, mx_dq)
7474

7575

76-
def test_mx_exceptions():
76+
def test_mx_exceptions() -> None:
7777
fi = BlockFormatInfo("test", format_info_ocp_e2m1, 32, format_info_ocp_e8m0)
7878

7979
A = np.ones(32) * 2.0**-139
@@ -82,10 +82,10 @@ def test_mx_exceptions():
8282
assert s == 2.0**-127
8383

8484
with pytest.raises(ValueError, match="out of range"):
85-
next(encode_block(fi, fi.stype.max * 2, A))
85+
list(encode_block(fi, fi.stype.max * 2, A))
8686

8787
assert not fi.stype.is_signed
8888
scale = fi.stype.min / 2
8989
assert scale != 0
9090
with pytest.raises(ValueError, match="out of range"):
91-
next(encode_block(fi, scale, A))
91+
list(encode_block(fi, scale, A))

0 commit comments

Comments
 (0)