Ticket #2713 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

[with patch, positive review] sage-doctest applies backslash handling to expected outputs

Reported by: cwitty Assigned to: failure
Priority: major Milestone: sage-3.0
Component: doctest Keywords:
Cc:

Description

sage-doctest applies "backslash handling" to doctests, where a line that ends with a single backslash is merged with the next line (with the backslash removed). As far as I can tell, this makes it impossible to doctest something with an expected output having a line ending with a backslash.

This patch to the "hg_scripts" repository removes the behavior for expected outputs (but keeps backslash handling for inputs; that is, for lines beginning "sage:"). There was one doctest in Sage that depended on the previous behavior; the second patch modifies that doctest to pass with the new sage-doctest.

Attachments

trac2713-hg_scripts-backslash-handling.patch (1.1 kB) - added by cwitty on 03/28/2008 06:05:00 PM.
trac2713-hg_sage-backslash-handling.patch (0.9 kB) - added by cwitty on 03/28/2008 06:06:56 PM.

Change History

03/28/2008 06:05:00 PM changed by cwitty

  • attachment trac2713-hg_scripts-backslash-handling.patch added.

03/28/2008 06:06:56 PM changed by cwitty

  • attachment trac2713-hg_sage-backslash-handling.patch added.

04/04/2008 01:25:06 PM changed by mhansen

  • summary changed from [with patch, needs review] sage-doctest applies backslash handling to expected outputs to [with patch, positive review] sage-doctest applies backslash handling to expected outputs.

Looks good to me.

04/04/2008 02:54:07 PM changed by mabshoff

  • status changed from new to closed.
  • resolution set to fixed.

Merged in Sage 3.0.alpha1