Skip to content

Commit

Permalink
remove asyncio patch in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Dec 10, 2020
1 parent 5c85fe9 commit a69b19b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions jupyter_server/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,8 @@
# This shouldn't be needed anymore, since pytest_tornasync is found in entrypoints
pytest_plugins = "pytest_tornasync"

# NOTE: This is a temporary fix for Windows 3.8
# We have to override the io_loop fixture with an
# asyncio patch. This will probably be removed in
# the future.

@pytest.fixture
def asyncio_patch():
ServerApp()._init_asyncio_patch()

@pytest.fixture
def io_loop(asyncio_patch):
def io_loop():
loop = tornado.ioloop.IOLoop()
loop.make_current()
yield loop
Expand Down Expand Up @@ -282,4 +273,4 @@ def inner(nbpath):
nb = nbformat.v4.new_notebook()
nbtext = nbformat.writes(nb, version=4)
nbpath.write_text(nbtext)
return inner
return inner

0 comments on commit a69b19b

Please sign in to comment.