Ticket #11374 (closed defect: fixed)
interfaces/magma.py test fails
| Reported by: | mariah | Owned by: | was |
|---|---|---|---|
| Priority: | trivial | Milestone: | sage-4.7.1 |
| Component: | interfaces | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Mike Hansen |
| Authors: | Mariah Lenox | Merged in: | sage-4.7.1.alpha3 |
| Dependencies: | Stopgaps: |
Description (last modified by mariah) (diff)
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.
Apply: trac_11374.patch
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

