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 2022/04/08 20:52:30 UTC

[GitHub] [tvm] SebastianBoblestETAS commented on a diff in pull request #10529: Detailed error message in Executor

SebastianBoblestETAS commented on code in PR #10529:
URL: https://github.com/apache/tvm/pull/10529#discussion_r846483219


##########
tests/python/relay/test_executor.py:
##########
@@ -44,12 +44,15 @@ def test_attr_check():
 
 
 def test_create_executor_not_found():
-    with pytest.raises(TVMError, match='Executor "woof" is not defined'):
+    with pytest.raises(TVMError, match='Executor "woof" is not defined.'):
         Executor("woof", {})
 
 
 def test_create_executor_attr_not_found():
-    with pytest.raises(TVMError, match='Attribute "woof" is not available on this Executor'):
+    with pytest.raises(
+        TVMError,
+        match='TVMError: Executor "aot": Attribute "woof" not in.*workspace-byte-alignment, unpacked-api, interface-api, link-params',

Review Comment:
   Hi @areusch thanks for the hint! I have tried it with a .* at the end now. It is a bit hard for me to test this, because locally the test passes  in all the different versions I have tried so far.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

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