Skip to content

Commit 2b65886

Browse files
committed
maint: update tests to use async/await
1 parent d442d74 commit 2b65886

File tree

3 files changed

+86
-109
lines changed

3 files changed

+86
-109
lines changed

batchspawner/tests/conftest.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
"""Relevant pytest fixtures are re-used from JupyterHub's test suite"""
22

3-
# We only use "db" and "io_loop", but we also need event_loop which is used by
4-
# io_loop to be available with jupyterhub 1+.
5-
from jupyterhub.tests.conftest import db, io_loop # noqa
6-
7-
try:
8-
from jupyterhub.tests.conftest import event_loop # noqa
9-
except:
10-
pass
3+
# We use "db" directly, but we also need event_loop
4+
from jupyterhub.tests.conftest import db, event_loop # noqa

0 commit comments

Comments
 (0)