Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix doctest failures in doc/en/tutorial/interfaces.rst due to upgrade to Maxima 5.19.1 #6787

Closed
sagetrac-drkirkby mannequin opened this issue Aug 20, 2009 · 4 comments

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Aug 20, 2009

On Solaris 10 update 7 (SPARC), the following tests failed. Both ECL and Maxima were updated - ECL version 9.8.4, Maxima version 5.19.1. Sage was built with gcc 4.4.1

----------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Thu Aug 20 20:02:37 BST 2009
dsage-trial tmp directory doesn't exist - creating ...
This script will run the unit tests for DSage
sage -t  "devel/sage/doc/en/tutorial/interfaces.rst"
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 284:
    sage: A.eigenvectors()
Expected:
    [[[0,4],[3,1]],[1,0,0,-4],[0,1,0,-2],[0,0,1,-4/3],[1,2,3,4]]
Got:
    [[[0,4],[3,1]],[[[1,0,0,-4],[0,1,0,-2],[0,0,1,-4/3]],[[1,2,3,4]]]]
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 294:
    sage: eigA
Expected:
    [[[-2,-1,1],[1,1,1]],[0,0,1],[0,1,3],[1,1/2,5/6]]
Got:
    [[[-2,-1,1],[1,1,1]],[[[0,0,1]],[[0,1,3]],[[1,1/2,5/6]]]]
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 296:
    sage: v1 = V(sage_eval(repr(eigA[1]))); lambda1 = eigA[0][0][0]
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[6]>", line 1, in <module>
        v1 = V(sage_eval(repr(eigA[Integer(1)]))); lambda1 = eigA[Integer(0)][Integer(0)][Integer(0)]###line 296:
    sage: v1 = V(sage_eval(repr(eigA[1]))); lambda1 = eigA[0][0][0]
      File "/export/home/drkirkby/sage/sage-4.1.1/local/lib/python/site-packages/sage/modules/free_module.py", line 4471, in __call__
        return FreeModule_generic_field.__call__(self,e)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/lib/python/site-packages/sage/modules/free_module.py", line 804, in __call__
        return self._element_class(self, x, coerce, copy)
      File "vector_rational_dense.pyx", line 100, in sage.modules.vector_rational_dense.Vector_rational_dense.__init__ (sage/modules/vector_rational_dense.c:2500)
      File "rational.pyx", line 354, in sage.rings.rational.Rational.__init__ (sage/rings/rational.c:5925)
      File "rational.pyx", line 497, in sage.rings.rational.Rational.__set_value (sage/rings/rational.c:7060)
      File "rational.pyx", line 508, in sage.rings.rational.Rational.__set_value (sage/rings/rational.c:7215)
    TypeError: Unable to coerce [0, 0, 1] (<type 'list'>) to Rational
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 297:
    sage: v2 = V(sage_eval(repr(eigA[2]))); lambda2 = eigA[0][0][1]
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[7]>", line 1, in <module>
        v2 = V(sage_eval(repr(eigA[Integer(2)]))); lambda2 = eigA[Integer(0)][Integer(0)][Integer(1)]###line 297:
    sage: v2 = V(sage_eval(repr(eigA[2]))); lambda2 = eigA[0][0][1]
      File "/export/home/drkirkby/sage/sage-4.1.1/local/lib/python/site-packages/sage/interfaces/maxima.py", line 2077, in __getitem__
        raise IndexError, "n = (%s) must be between %s and %s"%(n, 0, len(self)-1)
    IndexError: n = (2) must be between 0 and 1
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 298:
    sage: v3 = V(sage_eval(repr(eigA[3]))); lambda3 = eigA[0][0][2]
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[8]>", line 1, in <module>
        v3 = V(sage_eval(repr(eigA[Integer(3)]))); lambda3 = eigA[Integer(0)][Integer(0)][Integer(2)]###line 298:
    sage: v3 = V(sage_eval(repr(eigA[3]))); lambda3 = eigA[0][0][2]
      File "/export/home/drkirkby/sage/sage-4.1.1/local/lib/python/site-packages/sage/interfaces/maxima.py", line 2077, in __getitem__
        raise IndexError, "n = (%s) must be between %s and %s"%(n, 0, len(self)-1)
    IndexError: n = (3) must be between 0 and 1
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 302:
    sage: b1 = v1.base_ring()
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[11]>", line 1, in <module>
        b1 = v1.base_ring()###line 302:
    sage: b1 = v1.base_ring()
    NameError: name 'v1' is not defined
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 303:
    sage: AA*v1 == b1(lambda1)*v1
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[12]>", line 1, in <module>
        AA*v1 == b1(lambda1)*v1###line 303:
    sage: AA*v1 == b1(lambda1)*v1
    NameError: name 'v1' is not defined
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 305:
    sage: b2 = v2.base_ring()
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[13]>", line 1, in <module>
        b2 = v2.base_ring()###line 305:
    sage: b2 = v2.base_ring()
    NameError: name 'v2' is not defined
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 306:
    sage: AA*v2 == b2(lambda2)*v2
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[14]>", line 1, in <module>
        AA*v2 == b2(lambda2)*v2###line 306:
    sage: AA*v2 == b2(lambda2)*v2
    NameError: name 'v2' is not defined
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 308:
    sage: b3 = v3.base_ring()
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[15]>", line 1, in <module>
        b3 = v3.base_ring()###line 308:
    sage: b3 = v3.base_ring()
    NameError: name 'v3' is not defined
**********************************************************************
File "/export/home/drkirkby/sage/sage-4.1.1/devel/sage/doc/en/tutorial/interfaces.rst", line 309:
    sage: AA*v3 == b3(lambda3)*v3
Exception raised:
    Traceback (most recent call last):
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/export/home/drkirkby/sage/sage-4.1.1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_8[16]>", line 1, in <module>
        AA*v3 == b3(lambda3)*v3###line 309:
    sage: AA*v3 == b3(lambda3)*v3
    NameError: name 'v3' is not defined
**********************************************************************
2 items had failures:
   1 of   8 in __main__.example_7
  10 of  17 in __main__.example_8
***Test Failed*** 11 failures.

Component: interfaces

Keywords: maxima

Issue created by migration from https://trac.sagemath.org/ticket/6787

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-4.1.2 milestone Aug 20, 2009
@aghitza
Copy link

aghitza commented Aug 20, 2009

Changed keywords from none to maxima

@aghitza aghitza changed the title 11 doctest failures in devel/sage/doc/en/tutorial/interfaces.rst fix doctest failures in doc/en/tutorial/interfaces.rst due to upgrade to Maxima 5.19.0 Aug 20, 2009
@aghitza
Copy link

aghitza commented Aug 21, 2009

comment:2

This is due to Maxima's new formatting for eigenvectors -- the structure of the resulting list has changed. See attached patch.

@aghitza
Copy link

aghitza commented Aug 21, 2009

Attachment: trac_6787.patch.gz

apply after spkg's at #6564 and #6699

@sagetrac-drkirkby sagetrac-drkirkby mannequin changed the title fix doctest failures in doc/en/tutorial/interfaces.rst due to upgrade to Maxima 5.19.0 fix doctest failures in doc/en/tutorial/interfaces.rst due to upgrade to Maxima 5.19.1 Aug 21, 2009
@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 2, 2009

comment:5

This is fixed by #6699.

@sagetrac-mvngu sagetrac-mvngu mannequin removed the s: needs review label Sep 2, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Sep 2, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants