#17946: Use ipython own's function to get its configuration folder
-------------------------------------+-------------------------------------
       Reporter:  fbissey            |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.6
      Component:  build              |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  François Bissey    |    Reviewers:  Travis Scrimshaw
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/fbissey/ipythondir               |  d3a0ed67bb4725020baf72c1a40c59cfadb742f5
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 {{{
 sage -t --long src/sage/repl/ipython_kernel/install.py
 **********************************************************************
 File "src/sage/repl/ipython_kernel/install.py", line 118, in
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax
 Failed example:
     ipython_dir = get_ipython_dir()
 Exception raised:
     Traceback (most recent call last):
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 492, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 854, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax[3]>",
 line 1, in <module>
         ipython_dir = get_ipython_dir()
     NameError: name 'get_ipython_dir' is not defined
 **********************************************************************
 File "src/sage/repl/ipython_kernel/install.py", line 119, in
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax
 Failed example:
     mathjax = os.path.join(ipython_dir, 'nbextensions', 'mathjax')
 Exception raised:
     Traceback (most recent call last):
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 492, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 854, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax[4]>",
 line 1, in <module>
         mathjax = os.path.join(ipython_dir, 'nbextensions', 'mathjax')
     NameError: name 'ipython_dir' is not defined
 **********************************************************************
 File "src/sage/repl/ipython_kernel/install.py", line 120, in
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax
 Failed example:
     os.path.exists(mathjax)
 Exception raised:
     Traceback (most recent call last):
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 492, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/mnt/disk/home/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 854, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax[5]>",
 line 1, in <module>
         os.path.exists(mathjax)
     NameError: name 'mathjax' is not defined
 **********************************************************************
 1 item had failures:
    3 of   7 in
 sage.repl.ipython_kernel.install.SageKernelSpec.use_local_mathjax
     [37 tests, 3 failures, 0.16 s]
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17946#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to