mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
send ignored output to devnull
rather than PIPE, since Windows pipes can fill up.
This commit is contained in:
parent
dbfea55e8a
commit
2b54e36ab7
@ -1,5 +1,6 @@
|
|||||||
"""Base class for notebook tests."""
|
"""Base class for notebook tests."""
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
@ -52,9 +53,13 @@ class NotebookTestBase(TestCase):
|
|||||||
'--port=%d' % cls.port,
|
'--port=%d' % cls.port,
|
||||||
'--no-browser',
|
'--no-browser',
|
||||||
'--ipython-dir=%s' % cls.ipython_dir.name,
|
'--ipython-dir=%s' % cls.ipython_dir.name,
|
||||||
'--notebook-dir=%s' % cls.notebook_dir.name
|
'--notebook-dir=%s' % cls.notebook_dir.name,
|
||||||
]
|
]
|
||||||
cls.notebook = Popen(notebook_args, stdout=PIPE, stderr=PIPE)
|
devnull = open(os.devnull, 'w')
|
||||||
|
cls.notebook = Popen(notebook_args,
|
||||||
|
stdout=devnull,
|
||||||
|
stderr=devnull,
|
||||||
|
)
|
||||||
cls.wait_until_alive()
|
cls.wait_until_alive()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user