#11374: interfaces/magma.py test fails
--------------------------+-------------------------------------------------
   Reporter:  mariah      |          Owner:  was       
       Type:  defect      |         Status:  new       
   Priority:  trivial     |      Milestone:  sage-4.7.1
  Component:  interfaces  |       Keywords:            
Work_issues:              |       Upstream:  N/A       
   Reviewer:              |         Author:            
     Merged:              |   Dependencies:            
--------------------------+-------------------------------------------------
 For sage-4.7.rc4

 {{{
 eno% ./sage -t --only_optional=magma "devel/sage/sage/interfaces/magma.py"
 sage -t --only_optional=magma "devel/sage/sage/interfaces/magma.py"
 **********************************************************************
 File "/home/mariah/sage/sage-4.7.rc4-x86_64-Linux-core2-fc-work-
 magma/devel/sage/sage/interfaces/magma.py", line 514:
     sage:
 
magma.eval("_<x>:=PolynomialRing(Rationals());repeatg:=3*b*x^4+18*c*x^3-6*b^2*x^2-6*b*c*x-b^3-9*c^2
 where b:=Random([-10..10]) where c:=Random([-10..10]);until g ne 0 and
 Roots(g) ne []; print \"success\";")      # optional - magma
 Exception raised:
     Traceback (most recent call last):
       File "/home/mariah/sage/sage-4.7.rc4-x86_64-Linux-core2-fc-work-
 magma/local/bin/ncadoctest.py", line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/home/mariah/sage/sage-4.7.rc4-x86_64-Linux-core2-fc-work-
 magma/local/bin/sagedoctest.py", line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/home/mariah/sage/sage-4.7.rc4-x86_64-Linux-core2-fc-work-
 magma/local/bin/ncadoctest.py", line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_3[4]>", line 1, in <module>
 
magma.eval("_<x>:=PolynomialRing(Rationals());repeatg:=3*b*x^4+18*c*x^3-6*b^2*x^2-6*b*c*x-b^3-9*c^2
 where b:=Random([-10..10]) where c:=Random([-10..10]);until g ne 0 and
 Roots(g) ne []; print \"success\";")      # optional - magma###line 514:
     sage:
 
magma.eval("_<x>:=PolynomialRing(Rationals());repeatg:=3*b*x^4+18*c*x^3-6*b^2*x^2-6*b*c*x-b^3-9*c^2
 where b:=Random([-10..10]) where c:=Random([-10..10]);until g ne 0 and
 Roots(g) ne []; print \"success\";")      # optional - magma
       File "/home/mariah/sage/sage-4.7.rc4-x86_64-Linux-core2-fc-work-
 magma/local/lib/python/site-packages/sage/interfaces/magma.py", line 523,
 in eval
         raise RuntimeError, "Error evaluating Magma
 code.\nIN:%s\nOUT:%s"%(x, ans)
     RuntimeError: Error evaluating Magma code.
 
IN:_<x>:=PolynomialRing(Rationals());repeatg:=3*b*x^4+18*c*x^3-6*b^2*x^2-6*b*c*x-b^3-9*c^2
 where b:=Random([-10..10]) where c:=Random([-10..10]);until g ne 0 and
 Roots(g) ne []; print "success";
     OUT:
     In file "/home/mariah/.sage//temp/eno/28994//interface//tmp29063",
 line 1, column 143:
     >> 10]) where c:=Random([-10..10]);until g ne 0 and Roots(g) ne [];
 print "suc
                                        ^
     User error: bad syntax
 **********************************************************************
 1 items had failures:
 }}}

 This is a follow-on to #9705 and is caused by the lack of
 a space.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11374>
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 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