Skip to content

Commit 151696f

Browse files
author
Krzysztof Parzyszek
authored
[unittests] Skip import of tvm.micro if micro-TVM was not enabled (#9301)
1 parent d095a96 commit 151696f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/python/unittest/test_crt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from tvm.topi.utils import get_const_tuple
3636
from tvm.topi.testing import conv2d_nchw_python
3737

38+
pytest.importorskip("tvm.micro.testing")
3839
from tvm.micro.testing import check_tune_log
3940

4041
BUILD = True

tests/python/unittest/test_micro_project_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import pytest
2626

2727
import tvm
28+
29+
pytest.importorskip("tvm.micro")
2830
from tvm.micro import project_api
2931

3032

0 commit comments

Comments
 (0)