#4778: [with patch, positive review] Creates Scilab pexpect interface
-------------------------+--------------------------------------------------
 Reporter:  ronanpaixao  |        Owner:  ronanpaixao
     Type:  enhancement  |       Status:  new        
 Priority:  minor        |    Milestone:  sage-3.2.2 
Component:  interfaces   |   Resolution:             
 Keywords:  scilab       |  
-------------------------+--------------------------------------------------
Comment (by mabshoff):

 This patch needs two simple one line fixes to make more doctests optional:
 {{{
 sage -t -long "devel/sage/sage/interfaces/scilab.py"
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/devel/sage/sage/interfaces/scilab.py", line 269:
     sage: scilab.eval("5")
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/ncadoctest.py", line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_6[2]>", line 1, in <module>
         scilab.eval("5")###line 269:
     sage: scilab.eval("5")
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/scilab.py", line 274, in eval
         s = Expect.eval(self, command).replace("\x1b[?1l\x1b>","").strip()
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 937, in eval
         return '\n'.join([self._eval_line(L, **kwds) for L in
 code.split('\n') if L != ''])
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 633, in _eval_line
         self._start()
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/scilab.py", line 261, in _start
         Expect._start(self)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 470, in _start
         raise RuntimeError, "Unable to start %s"%self.__name
     RuntimeError: Unable to start scilab
 **********************************************************************
 File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/devel/sage/sage/interfaces/scilab.py", line 271:
     sage: scilab.eval("d=44")
 Exception raised:
     Traceback (most recent call last):
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/ncadoctest.py", line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_6[3]>", line 1, in <module>
         scilab.eval("d=44")###line 271:
     sage: scilab.eval("d=44")
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/scilab.py", line 274, in eval
         s = Expect.eval(self, command).replace("\x1b[?1l\x1b>","").strip()
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 937, in eval
         return '\n'.join([self._eval_line(L, **kwds) for L in
 code.split('\n') if L != ''])
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 633, in _eval_line
         self._start()
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/scilab.py", line 261, in _start
         Expect._start(self)
       File "/scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 470, in _start
         raise RuntimeError, "Unable to start %s"%self.__name
     RuntimeError: Unable to start scilab
 **********************************************************************
 1 items had failures:
    2 of   4 in __main__.example_6
 ***Test Failed*** 2 failures.
 For whitespace errors, see the file /scratch/mabshoff/release-
 cycle/sage-3.2.2.rc1/tmp/.doctest_scilab.py
          [2.3 s]
 exit code: 1024
 }}}

 Reviewer patch coming up.

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4778#comment:7>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to