Skip to content

Commit 25dcb51

Browse files
committed
BF: skip testing the monitor code if tinydb is not available
1 parent 0b85bc4 commit 25dcb51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_monitor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import os.path as op
44
import pytest
55
from mock import patch
6-
from tinydb import TinyDB, Query
6+
try:
7+
from tinydb import TinyDB, Query
8+
except ImportError:
9+
pytest.importorskip("tinydb")
710
from subprocess import CalledProcessError
811

912
try:

0 commit comments

Comments
 (0)