Changes between Version 13 and Version 14 of Ticket #10589


Ignore:
Timestamp:
05/06/13 12:17:14 (7 years ago)
Author:
andrew.mathas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10589 – Description

    v13 v14  
     1This patch fixes the following problems with the command line fixdoctests option:
     2* correctly deals with tests for which output it expected but none is generated, or for which no output is expected by some is generated.
     3* makes fixdoctests play nicely with the changes introduced in #12415
     4* adds some tests to sage/tests/comline.py
     5* makes the script work slightly better with tests that produce output with varying indentation
     6* cleans up the code of sage-fixdoctests
     7---
     8Original ticket:
     9
    110To reproduce this remove all but the first test result from the patch at: #10568
    211
     
    4958maarten-derickxs-macbook-pro:sage maarten$ sage -fixdoctests matrix/matrix_sparse.pyx
    5059}}}
    51 
    5260The bug was caused by the script not not allowing for the cases when either the expected or computed returns from the doctests were empty. The attached patch does this properly and also cleans up the script a little (well, a lot, actually).
    5361