You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/03/12 05:31:16 UTC

[GitHub] [tvm] junrushao1994 commented on a change in pull request #7647: [Relay][bugfix] Do not allow an empty match block to type check

junrushao1994 commented on a change in pull request #7647:
URL: https://github.com/apache/tvm/pull/7647#discussion_r592919396



##########
File path: tests/python/relay/test_type_infer.py
##########
@@ -416,6 +416,21 @@ def test_dynamic_function():
     assert mod["main"].params[0].checked_type == s_tt
 
 
+@pytest.mark.xfail(raises=tvm.error.TVMError)

Review comment:
       let's use `with pytest.raises` instead (https://docs.pytest.org/en/stable/assert.html#assertions-about-expected-exceptions), because the testcase tests for throwing an exception, not a known limitation




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org