Skip to content

Commit 27d66b7

Browse files
committed
update importorskip for tornado
1 parent 91aee00 commit 27d66b7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tests/test_ioloop.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,7 @@
44

55
import pytest
66

7-
try:
8-
import tornado.ioloop
9-
except ImportError:
10-
_tornado = False
11-
else:
12-
_tornado = True
13-
14-
15-
def setup():
16-
if not _tornado:
17-
pytest.skip("requires tornado")
7+
tornado = pytest.importorskip("tornado")
188

199

2010
def test_ioloop():

0 commit comments

Comments
 (0)