Opened 11 years ago

Closed 11 years ago

Last modified 5 years ago

#4400 closed defect (invalid)

Sage 3.1.4: magma related doctest failures in sage/interfaces/magma.py

Reported by: mabshoff Owned by: was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: doctest coverage Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by chapoton)

This is a strange one:

mabshoff@iras:~/build-3.2.a1/sage-3.2.alpha1-iras> ./sage -t -long -optional devel/sage/sage/interfaces/magma.py
sage -t -long -optional devel/sage/sage/interfaces/magma.py 
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1390:
    sage: a.sage()                        # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[3]>", line 1, in <module>
        a.sage()                        # optional###line 1390:
    sage: a.sage()                        # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[15], _sage_[22] := Sage(_sage_[3]);
    OUT:
    >> _sage_[15], _sage_[22] := Sage(_sage_[3]);
                              ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1392:
    sage: a._sage_()                      # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[4]>", line 1, in <module>
        a._sage_()                      # optional###line 1392:
    sage: a._sage_()                      # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[19], _sage_[28] := Sage(_sage_[8]);
    OUT:
    >> _sage_[19], _sage_[28] := Sage(_sage_[8]);
                              ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1394:
    sage: type(a.sage())                  # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[5]>", line 1, in <module>
        type(a.sage())                  # optional###line 1394:
    sage: type(a.sage())                  # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[29], _sage_[30] := Sage(_sage_[3]);
    OUT:
    >> _sage_[29], _sage_[30] := Sage(_sage_[3]);
                              ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1400:
    sage: b = a.sage(); b             # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[8]>", line 1, in <module>
        b = a.sage(); b             # optional###line 1400:
    sage: b = a.sage(); b             # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[32], _sage_[33] := Sage(_sage_[26]);
    OUT:
    >> _sage_[32], _sage_[33] := Sage(_sage_[26]);
                              ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1402:
    sage: type(b)                         # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[9]>", line 1, in <module>
        type(b)                         # optional###line 1402:
    sage: type(b)                         # optional
    NameError: name 'b' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1404:
    sage: c = magma(b); c                 # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[10]>", line 1, in <module>
        c = magma(b); c                 # optional###line 1404:
    sage: c = magma(b); c                 # optional
    NameError: name 'b' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1406:
    sage: c.Type()                        # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[11]>", line 1, in <module>
        c.Type()                        # optional###line 1406:
    sage: c.Type()                        # optional
    NameError: name 'c' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1411:
    sage: z = m.sage(); z                      # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[13]>", line 1, in <module>
        z = m.sage(); z                      # optional###line 1411:
    sage: z = m.sage(); z                      # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[26], _sage_[34] := Sage(_sage_[4]);
    OUT:
    >> _sage_[26], _sage_[34] := Sage(_sage_[4]);
                              ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1413:
    sage: type(z)                              # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[14]>", line 1, in <module>
        type(z)                              # optional###line 1413:
    sage: type(z)                              # optional
    NameError: name 'z' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1419:
    sage: b = m.sage(); b                     # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[17]>", line 1, in <module>
        b = m.sage(); b                     # optional###line 1419:
    sage: b = m.sage(); b                     # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[3], _sage_[35] := Sage(_sage_[4]);
    OUT:
    >> _sage_[3], _sage_[35] := Sage(_sage_[4]);
                             ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1423:
    sage: b == a                             # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[18]>", line 1, in <module>
        b == a                             # optional###line 1423:
    sage: b == a                             # optional
    NameError: name 'b' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/magma.py", line 1429:
    sage: m.sage()                           # optional
Exception raised:
    Traceback (most recent call last):
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_49[21]>", line 1, in <module>
        m.sage()                           # optional###line 1429:
    sage: m.sage()                           # optional
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 1406, in sage
        return self._sage_()
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1433, in _sage_
        z, preparse = self.Sage(nvals = 2)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 1213, in __call__
        nvals = nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 754, in function_call
        return self._do_call(fun, nvals)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 798, in _do_call
        out = self.eval(cmd)
      File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/site-packages/sage/interfaces/magma.py", line 383, in eval
        raise RuntimeError, "Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)
    RuntimeError: Error evaluating Magma code.
    IN:
[8], _sage_[37] := Sage(_sage_[4]);
    OUT:
    >> _sage_[8], _sage_[37] := Sage(_sage_[4]);
                             ^
    Runtime error in :=: Expected to assign 2 value(s) but only computed 1 value(s)
**********************************************************************
1 items had failures:
  12 of  22 in __main__.example_49
***Test Failed*** 12 failures.
For whitespace errors, see the file /home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/.doctest_magma.py
 [52.9 s]
exit code: 1024
 
----------------------------------------------------------------------
The following tests failed:


sage -t -long -optional devel/sage/sage/interfaces/magma.py
Total time for all tests: 52.9 seconds
}

Change History (2)

comment:1 Changed 11 years ago by mabshoff

  • Milestone changed from sage-3.2 to sage-duplicate/invalid/wontfix
  • Resolution set to invalid
  • Status changed from new to closed

Accidentally two extcode patches were not merged in 3.2.alpha1, so this cause the above failures. Applying them fixes the problem. Invalid.

Cheers,

Michael

comment:2 Changed 5 years ago by chapoton

  • Description modified (diff)
  • Report Upstream set to N/A
Note: See TracTickets for help on using tickets.