Ticket #6439 (new defect)

Opened 14 months ago

doctests beginning with Sage: are silently ignored

Reported by: broune Owned by: tbd
Priority: major Milestone:
Component: doctest Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

This doctest is silently ignored:

Sage: 1+1
45

I.e. no warning is displayed, and doctesting the file it is in produces no failures. This is because I wrote Sage: rather than sage:. I don't now if other capitalizations than "sage" should be accepted, but certainly they should not be silently ignored.

I propose to report an error on "Sage:" or any other capitalization of that in any context where "sage:" would be interpreted as a doctest.

Note: See TracTickets for help on using tickets.