From 7546e57db4bcbfdbf6a2bc92719227b3a1d28e35 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Mon, 14 Oct 2013 14:45:47 -0700 Subject: [PATCH] make tests work on TravisCI --- IPython/testing/iptestcontroller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IPython/testing/iptestcontroller.py b/IPython/testing/iptestcontroller.py index d32e648b0..65377adc0 100644 --- a/IPython/testing/iptestcontroller.py +++ b/IPython/testing/iptestcontroller.py @@ -202,7 +202,9 @@ js_test_group_names = {'js'} def run_webapp(q, nbdir, loglevel=0): """start the IPython Notebook, and pass port back to the queue""" + import os import IPython.html.notebookapp as nbapp + os.environ["IPYTHONDIR"] = nbdir server = nbapp.NotebookApp() args = ['--no-browser'] args.append('--notebook-dir='+nbdir)