From 0605090a84ca9b17898dbef391ff7dd985a67eb7 2014-02-09 21:54:53 From: Brian E. Granger Date: 2014-02-09 21:54:53 Subject: [PATCH] Merge pull request #5083 from minrk/one-nb-server don't create js test directories unless they are being used --- diff --git a/IPython/testing/iptestcontroller.py b/IPython/testing/iptestcontroller.py index 39fb933..8300e32 100644 --- a/IPython/testing/iptestcontroller.py +++ b/IPython/testing/iptestcontroller.py @@ -178,15 +178,16 @@ class JSController(TestController): TestController.__init__(self) self.section = section + + def launch(self): self.ipydir = TemporaryDirectory() self.nbdir = TemporaryDirectory() - print("Running notebook tests in directory: %r" % self.nbdir.name) + print("Running %s tests in directory: %r" % (self.section, self.nbdir.name)) os.makedirs(os.path.join(self.nbdir.name, os.path.join(u'sub ∂ir1', u'sub ∂ir 1a'))) os.makedirs(os.path.join(self.nbdir.name, os.path.join(u'sub ∂ir2', u'sub ∂ir 1b'))) self.dirs.append(self.ipydir) self.dirs.append(self.nbdir) - - def launch(self): + # start the ipython notebook, so we get the port number self._init_server() js_test_dir = get_js_test_dir()