File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 3030 steps :
3131 - uses : actions/checkout@v3
3232 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
33+ - name : Run the tests on pypy
34+ if : ${{ startsWith(matrix.python-version, 'pypy') }}
35+ run : |
36+ hatch run test:nowarn || hatch run test:nowarn --lf
3337 - name : Run the tests
38+ if : ${{ !startsWith(matrix.python-version, 'pypy') }}
3439 run : hatch run cov:test || hatch run test:test --lf
3540 - name : Coverage
3641 run : |
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ async def get_server():
6767 server .stop ()
6868
6969 if hasattr (server , "close_all_connections" ):
70- io_loop .run_sync (server .close_all_connections )
70+ try :
71+ io_loop .run_sync (server .close_all_connections )
72+ except TimeoutError :
73+ pass
7174
7275 http_server_port [0 ].close ()
7376
Original file line number Diff line number Diff line change 22import os
33from unittest .mock import MagicMock
44
5+ import pytest
56from jupyter_server .auth import Authorizer
67from jupyter_server .serverapp import ServerApp
78from tornado .websocket import WebSocketHandler
@@ -13,6 +14,10 @@ async def test_serverapp(jp_serverapp):
1314 assert isinstance (jp_serverapp , ServerApp )
1415
1516
17+ def test_skip (jp_serverapp ):
18+ pytest .skip ("Forcing a skip" )
19+
20+
1621async def test_get_api_spec (jp_fetch ):
1722 response = await jp_fetch ("api" , "spec.yaml" , method = "GET" )
1823 assert response .code == 200
You can’t perform that action at this time.
0 commit comments