Ticket #2390 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

doctest failure sage/structure/factorization.py [order]

Reported by: jsp Owned by: was
Priority: major Milestone: sage-3.0
Component: misc Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

[jaap@paix sage-2.10.3.rc1]$ ./sage -t  devel/sage-main/sage/structure/factorization.py
sage -t  devel/sage-main/sage/structure/factorization.py    **********************************************************************
File ".doctest_factorization.py", line 479, in __main__.example_17
Failed example:
    F = factor(-Integer(2)*x**Integer(2) - Integer(1)); F###line 602:_sage_    >>> F = factor(-2*x^2 - 1); F
Expected:
    (-2.0) * (1.0*x^2 + 0.5) * (1.0*x^2 + 1.11022302463e-16*x + 0.5)  
Got:
    (-2.0) * (1.0*x^2 - 1.82173070032e-16*x + 0.5) * (1.0*x^2 + 0.5)
**********************************************************************
1 items had failures:
   1 of   3 in __main__.example_17
***Test Failed*** 1 failures.

A mysterious error (perphaps a memory error?) occurred, which may have crashed doctest.
         [2.7 s]
exit code: 256
 
----------------------------------------------------------------------
The following tests failed:


        sage -t  devel/sage-main/sage/structure/factorization.py
Total time for all tests: 2.7 seconds
[jaap@paix sage-2.10.3.rc1]$ 

Change History

comment:1 Changed 5 years ago by mabshoff

  • Owner changed from cwitty to was
  • Summary changed from numerical noise in devel/sage-main/sage/structure/factorization.py to doctest failure sage/structure/factorization.py [order]

comment:2 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

This has been fixed in Sage 2.10.3.final. I believe the patch was contributed by Gary Furnish, but my recollection might be a little hazy here.

Cheers,

Michael

Note: See TracTickets for help on using tickets.