提交 875aa3d7 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed test on integer division, since it is now supposed to raise an exception

上级 9b7326ee
......@@ -647,10 +647,13 @@ def test_local_merge_abs():
def test_mixeddiv():
"""Test that int division is preserved"""
"""Test that int division raises an exception."""
i = iscalar()
d = dscalar()
assert 0 == function([i,d], d*(i/(i+1)))(3, 1.0)
try:
0 == function([i,d], d*(i/(i+1)))(3, 1.0)
except NotImplementedError:
pass
def test_const_type_in_mul_canonizer():
input = dmatrix()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论