File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1515 from mock import patch # py2
1616
1717import nose .tools as nt
18- import pytest
1918
2019from traitlets .tests .utils import check_help_all_output
2120
@@ -195,14 +194,13 @@ def test_list_running_servers(self):
195194 assert self .port in {info ['port' ] for info in servers }
196195
197196
198- @ pytest . mark . skipif ( sys . platform . startswith ( 'win' ), reason = "No UNIX sockets on Windows." )
199- class NotebookUnixSocketTests ( UNIXSocketNotebookTestBase ):
200- @ pytest . mark . skipif ( sys . platform . startswith ( 'win' ), reason = "No UNIX sockets on Windows." )
201- def test_run (self ):
202- self .fetch_url (self .base_url () + 'api/contents' )
197+ # UNIX sockets aren't available on Windows.
198+ if not sys . platform . startswith ( 'win' ):
199+ class NotebookUnixSocketTests ( UNIXSocketNotebookTestBase ):
200+ def test_run (self ):
201+ self .fetch_url (self .base_url () + 'api/contents' )
203202
204- @pytest .mark .skipif (sys .platform .startswith ('win' ), reason = "No UNIX sockets on Windows." )
205- def test_list_running_sock_servers (self ):
206- servers = list (notebookapp .list_running_servers ())
207- assert len (servers ) >= 1
208- assert self .sock in {info ['sock' ] for info in servers }
203+ def test_list_running_sock_servers (self ):
204+ servers = list (notebookapp .list_running_servers ())
205+ assert len (servers ) >= 1
206+ assert self .sock in {info ['sock' ] for info in servers }
You can’t perform that action at this time.
0 commit comments