mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #5203 from minrk/test-log-warn
capture some logging/warning output in some tests
This commit is contained in:
commit
40ac479ae1
@ -11,6 +11,7 @@
|
||||
# Imports
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
import logging
|
||||
import os
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
@ -31,7 +32,7 @@ def test_help_output():
|
||||
tt.help_all_output_test('notebook')
|
||||
|
||||
def test_server_info_file():
|
||||
nbapp = NotebookApp(profile='nbserver_file_test')
|
||||
nbapp = NotebookApp(profile='nbserver_file_test', log=logging.getLogger())
|
||||
def get_servers():
|
||||
return list(notebookapp.list_running_servers(profile='nbserver_file_test'))
|
||||
nbapp.initialize(argv=[])
|
||||
|
Loading…
Reference in New Issue
Block a user