Ticket #1373 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

2.8.15.alpha2: quotient_module.py doctest failure

Reported by: cwitty Owned by: was
Priority: major Milestone: sage-2.8.15
Component: algebraic geometry Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

On my laptop (32-bit x86 Linux, Debian testing) I get the following doctest failure in 2.8.15.alpha2:

sage -t  devel/sage-main/sage/modules/quotient_module.py    **********************************************************************
File "quotient_module.py", line 161:
    sage: cmp(Q1, 5)
Expected:
    1                  
Got:
    -1
**********************************************************************

The code compares type(Q1) and type(5); since type objects have no useful pre-defined comparison operation, this just compares the memory addresses of the type objects.

I think the doctest should just be removed.

Change History

comment:1 Changed 6 years ago by was

sage: cmp(Q1, 5) != 0
True

comment:2 Changed 6 years ago by mabshoff

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

Merged in 2.8.15.rc0.

Note: See TracTickets for help on using tickets.