Show More
@@ -7,6 +7,7 b'' | |||
|
7 | 7 | #----------------------------------------------------------------------------- |
|
8 | 8 | import io |
|
9 | 9 | |
|
10 | # N.B. For the test suite, page.page is overridden (see IPython.testing.globalipapp) | |
|
10 | 11 | from IPython.core import page |
|
11 | 12 | |
|
12 | 13 | def test_detect_screen_size(): |
@@ -27,6 +27,7 b' import sys' | |||
|
27 | 27 | # our own |
|
28 | 28 | from . import tools |
|
29 | 29 | |
|
30 | from IPython.core import page | |
|
30 | 31 | from IPython.utils import io |
|
31 | 32 | from IPython.utils import py3compat |
|
32 | 33 | from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell |
@@ -228,5 +229,12 b' def start_ipython():' | |||
|
228 | 229 | # To avoid extra IPython messages during testing, suppress io.stdout/stderr |
|
229 | 230 | io.stdout = StreamProxy('stdout') |
|
230 | 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 | 240 | return _ip |
General Comments 0
You need to be logged in to leave comments.
Login now