Re: Running DocTest on Strings

2006-06-30 Thread notanotheridiot
André wrote: > Paddy wrote: > > notanotheridiot wrote: > > > Hi, > > > I have two strings - a docstring containing doctests and a code string > > > containing code to be tested with those doctests. I've been trying for > > > a day now to run the test without concatenating the two strings, > > > ad

Re: Running DocTest on Strings

2006-06-29 Thread André
Paddy wrote: > notanotheridiot wrote: > > Hi, > > I have two strings - a docstring containing doctests and a code string > > containing code to be tested with those doctests. I've been trying for > > a day now to run the test without concatenating the two strings, > > adding: > > > > import doctes

Re: Running DocTest on Strings

2006-06-29 Thread Paddy
notanotheridiot wrote: > Hi, > I have two strings - a docstring containing doctests and a code string > containing code to be tested with those doctests. I've been trying for > a day now to run the test without concatenating the two strings, > adding: > > import doctest > doctest.testmod > > to th

Running DocTest on Strings

2006-06-29 Thread notanotheridiot
Hi, I have two strings - a docstring containing doctests and a code string containing code to be tested with those doctests. I've been trying for a day now to run the test without concatenating the two strings, adding: import doctest doctest.testmod to the bottom, writing it all to a file and exe