提交 6bf3878d authored 作者: Kirill Radzikhovskyy's avatar Kirill Radzikhovskyy 提交者: Ricardo Vieira

tests: allow TypeError in test_tri_nonconcrete for JAX compatibility

上级 be866f9f
...@@ -230,5 +230,5 @@ def test_tri_nonconcrete(): ...@@ -230,5 +230,5 @@ def test_tri_nonconcrete():
# The actual error the user will see should be jax.errors.ConcretizationTypeError, but # The actual error the user will see should be jax.errors.ConcretizationTypeError, but
# the error handler raises an Attribute error first, so that's what this test needs to pass # the error handler raises an Attribute error first, so that's what this test needs to pass
with pytest.raises(AttributeError): with pytest.raises((AttributeError, TypeError)):
compare_jax_and_py([m, n, k], [out], [m_test_value, n_test_value, k_test_value]) compare_jax_and_py([m, n, k], [out], [m_test_value, n_test_value, k_test_value])
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论