Opened 7 years ago

Closed 7 years ago

#1373 closed defect (fixed)

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: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
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 (2)

comment:1 Changed 7 years ago by was

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

comment:2 Changed 7 years ago by mabshoff

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

Merged in 2.8.15.rc0.

Note: See TracTickets for help on using tickets.