Opened 3 years ago

Closed 8 months ago

#24303 closed defect (duplicate)

warn not in misc

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords: bug, thursdaysbdx
Cc: Merged in:
Authors: Reviewers: Markus Wageringel
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

sage: G = Graphics()
sage: G = line2d([(0,0), (1,1)])
sage: G.legend(True)
sage: G.show()
...
.../graphics.pyc in
   2661             leg = subplot.legend(prop=prop, **lopts)
   2662             if leg is None:
-> 2663                 sage.misc.misc.warn("legend requested but no items are labeled")
   2664             else:
   2665                 # color
AttributeError: 'module' object has no attribute 'warn'

This is the kind of things that should have been in a doctest!!

Change History (3)

comment:1 Changed 9 months ago by mkoeppe

  • Milestone changed from sage-8.2 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Fixed in #29895

comment:2 Changed 8 months ago by gh-mwageringel

  • Reviewers set to Markus Wageringel
  • Status changed from needs_review to positive_review

comment:3 Changed 8 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.