Opened 10 years ago

Closed 10 years ago

#1373 closed defect (fixed)

2.8.15.alpha2: 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:


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/    **********************************************************************
File "", line 161:
    sage: cmp(Q1, 5)

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 10 years ago by was

sage: cmp(Q1, 5) != 0

comment:2 Changed 10 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.