On Feb 21, 2012, at 21:36 , John H Palmieri wrote: > On Tuesday, February 21, 2012 5:24:22 AM UTC-8, Laurent Claessens wrote: > >> Hi all ! >> >> I want sage -t to test my docstrings. >> >> [snip] >> >> Is it normal ? With older versions of sage the same docstring was working. > Are you sure it was working before? Is it possible that with earlier versions > of Sage, the docstring was being ignored completely, and thus the file was > claiming to pass doctests because it wasn't actually running any?
FWIW, I just tried this with the .sage file appended below. With 4.7, I got what might be expected (the correct "expected/got error"). With 5.0-b3-gcc, I got a somewhat confusing message saying "Fred" wasn't defined. It seems that the docstring testing worked at one point, while now, it doesn't. I'm doing this on Mac OS X, 10.7.1. Justin ============== def Fred(n): """ Examples:: sage: Fred(273) 12 """ print n ============== -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income -------- The path of least resistance: it's not just for electricity any more. -------- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org