On Jun 23, 11:41 pm, John Cremona <john.crem...@gmail.com> wrote: > Doesn't adding > # not tested > work?
Yes, but I suppose this is cheating, too. On the one hand, this particular code is completely trivial (and it calls the method "_open", which is doctested), so not testing it but pretending that we do is not so bad. On the other hand, adding "# not tested" everywhere gives us a quick path to meaningless 100% doctest coverage :) John > On 23 June 2010 13:39, John H Palmieri <jhpalmier...@gmail.com> wrote: > > > > > In the file misc/sagedocs.py, there are some methods which are one- > > liners: they just open up a piece of the documentation in a web > > browser: > > > def tutorial(self): > > """ > > The Sage tutorial. To get started with Sage, start here. > > """ > > self._open("tutorial") > > > How can this be doctested? > > > Is it cheating to replace it with > > > tutorial = lambda self: self._open("tutorial") > > > so it doesn't count against coverage? Any other ideas? > > > -- > > John > > > -- > > To post to this group, send an email to sage-devel@googlegroups.com > > To unsubscribe from this group, send an email to > > sage-devel+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-devel > > URL:http://www.sagemath.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org