driazati commented on issue #10167:
URL: https://github.com/apache/tvm/issues/10167#issuecomment-1034476313


   Thanks for reporting! Can you share the script you used to generate this 
error so we can reproduce it? This should be fixable since pytest isn't 
actually used in that code path, so something like this 
[here](https://github.com/apache/tvm/blob/main/python/tvm/testing/utils.py#L74) 
would avoid the error and still give a nice message if pytest is actually used.
   
   ```python
   class MissingModuleStub:
       def __init__(self, name):
           self.name = name
   
       def __getattr__(self):
           raise RuntimeError(f"Module '{self.name}' is not installed")
   
   try:
       import pytest
   except ImportError:
       pytest = MissingModuleStub("pytest")
   ```


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


Reply via email to