Ticket #11374 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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 Download

Attachments

trac_11374.patch Download (1.0 KB) - added by mariah 2 years ago.

Change History

Changed 2 years ago by mariah

comment:1 Changed 2 years ago by mariah

  • Status changed from new to needs_review
  • Description modified (diff)
  • Authors set to Mariah Lenox

comment:2 Changed 2 years ago by mhansen

  • Reviewers set to Mike Hansen

Looks good to me.

comment:3 Changed 2 years ago by mhansen

  • Status changed from needs_review to positive_review

comment:4 Changed 2 years ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.7.1.alpha3
Note: See TracTickets for help on using tickets.