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."""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import requests
|
||||
@ -52,9 +53,13 @@ class NotebookTestBase(TestCase):
|
||||
'--port=%d' % cls.port,
|
||||
'--no-browser',
|
||||
'--ipython-dir=%s' % cls.ipython_dir.name,
|
||||
'--notebook-dir=%s' % cls.notebook_dir.name
|
||||
]
|
||||
cls.notebook = Popen(notebook_args, stdout=PIPE, stderr=PIPE)
|
||||
'--notebook-dir=%s' % cls.notebook_dir.name,
|
||||
]
|
||||
devnull = open(os.devnull, 'w')
|
||||
cls.notebook = Popen(notebook_args,
|
||||
stdout=devnull,
|
||||
stderr=devnull,
|
||||
)
|
||||
cls.wait_until_alive()
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user