Does anyone know of an easy way to replace a failing doctest's output with
the actual output? I am working on a continuation of the fix from
https://github.com/sympy/sympy/pull/1167 which changes the string printing
of Matrix from

>>> Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
[1, 2, 3]
[4, 5, 6]
[7, 8, 9]

to

>>> Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
Matrix([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])

Needless to say, this results in a *lot* of doctest failures. Changing them
all by hand doesn't sound appetizing.

I did find http://ed.loper.org/projects/doctestmode/, which is supposed to
let you do this in emacs, but I can't get it to work (it just says "buffer
matrices.py has no process").  And it seems it hasn't been updated it a
long time.

And in case anyone is concerned, yes I do plan on reviewing each change if
I do this. I just don't expect all or almost all of them to be as given,
and I don't want to do it by hand.

Aaron Meurer

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to