diff --git a/IPython/html/tests/test_notebookapp.py b/IPython/html/tests/test_notebookapp.py index 408bc00..088a647 100644 --- a/IPython/html/tests/test_notebookapp.py +++ b/IPython/html/tests/test_notebookapp.py @@ -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=[]) diff --git a/IPython/nbconvert/postprocessors/tests/test_pdf.py b/IPython/nbconvert/postprocessors/tests/test_pdf.py index cc650d6..11da2cb 100644 --- a/IPython/nbconvert/postprocessors/tests/test_pdf.py +++ b/IPython/nbconvert/postprocessors/tests/test_pdf.py @@ -14,6 +14,7 @@ Module with tests for the PDF post-processor # Imports #----------------------------------------------------------------------------- +import logging import os from IPython.testing import decorators as dec @@ -56,7 +57,7 @@ class TestPDF(TestsBase): f.write(HELLO_WORLD) # Construct post-processor - processor = PDFPostProcessor() + processor = PDFPostProcessor(log=logging.getLogger()) processor.verbose = False processor('a.tex')