##// END OF EJS Templates
Disable the pager for the test suite....
Thomas Kluyver -
Show More
@@ -7,6 +7,7 b''
7 #-----------------------------------------------------------------------------
7 #-----------------------------------------------------------------------------
8 import io
8 import io
9
9
10 # N.B. For the test suite, page.page is overridden (see IPython.testing.globalipapp)
10 from IPython.core import page
11 from IPython.core import page
11
12
12 def test_detect_screen_size():
13 def test_detect_screen_size():
@@ -27,6 +27,7 b' import sys'
27 # our own
27 # our own
28 from . import tools
28 from . import tools
29
29
30 from IPython.core import page
30 from IPython.utils import io
31 from IPython.utils import io
31 from IPython.utils import py3compat
32 from IPython.utils import py3compat
32 from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
33 from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
@@ -228,5 +229,12 b' def start_ipython():'
228 # To avoid extra IPython messages during testing, suppress io.stdout/stderr
229 # To avoid extra IPython messages during testing, suppress io.stdout/stderr
229 io.stdout = StreamProxy('stdout')
230 io.stdout = StreamProxy('stdout')
230 io.stderr = StreamProxy('stderr')
231 io.stderr = StreamProxy('stderr')
232
233 # Override paging, so we don't require user interaction during the tests.
234 def nopage(strng, start=0, screen_lines=0, pager_cmd=None):
235 print(strng)
236
237 page.orig_page = page.page
238 page.page = nopage
231
239
232 return _ip
240 return _ip
General Comments 0
You need to be logged in to leave comments. Login now