areusch commented on code in PR #10529:
URL: https://github.com/apache/tvm/pull/10529#discussion_r846536289
##########
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:
hmmm. have you tried running locally via e.g.
```
docker/bash.sh ci_cpu python3 -mpylint tests/python/relay/test_executor.py
```
i think maybe now what's happening is that you've got `-` in your regex
`match=` and you need to escape those with
https://docs.python.org/3/library/re.html#re.escape
i'm not sure why this wouldn't happen on your version of pytest tho.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]