We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89552bd commit 6e91b01Copy full SHA for 6e91b01
jupyter_server/pytest_plugin.py
@@ -280,10 +280,7 @@ def _configurable_serverapp(
280
app.start_app()
281
return app
282
283
- yield _configurable_serverapp
284
- app: ServerApp = ServerApp.instance()
285
- loop = asyncio.get_event_loop_policy().get_event_loop()
286
- loop.run_until_complete(app._stop())
+ return _configurable_serverapp
287
288
289
@pytest.fixture
@@ -477,6 +474,9 @@ def inner(nbpath):
477
474
@pytest.fixture(autouse=True)
478
475
def jp_server_cleanup():
479
476
yield
+ app: ServerApp = ServerApp.instance()
+ loop = asyncio.get_event_loop_policy().get_event_loop()
+ loop.run_until_complete(app._stop())
480
ServerApp.clear_instance()
481
482
0 commit comments