send ignored output to devnull

rather than PIPE, since Windows pipes can fill up.
This commit is contained in:
MinRK 2013-10-22 17:26:39 -07:00
parent dbfea55e8a
commit 2b54e36ab7

View File

@ -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