Thank you for looking at this, Benji. Tim, what Benji wrote sounds correct to me.
Gary On Mar 1, 2011, at 7:58 AM, Benji York wrote: > On Mon, Feb 28, 2011 at 11:05 PM, Tim Penhey <[email protected]> wrote: >> Having written the core of lazr.enum, I decided to take a hack at >> https://bugs.launchpad.net/lazr.enum/+bug/154556. >> >> First though, I edited the README.txt in the lazr.enum module to add the test >> first. I added the failing test then ran: >> ./setup.py test >> >> However it didn't fail. I then spent several attempts at trying to get the >> actual doctest for lazr.enum to run without success. > > I decided to take a look at this and couldn't reproduce your problem. > Here are the steps I took: > > bzr branch lp:lazr.enum lazr.enum/trunk > cd lazr.enum/trunk > clean-python-2.6.5 bootstrap.py > bin/buildout > bin/test -c > > All tests passed. > > I then added a failing test: > > === modified file 'src/lazr/enum/README.txt' > --- src/lazr/enum/README.txt 2009-06-08 21:29:30 +0000 > +++ src/lazr/enum/README.txt 2011-03-01 12:57:04 +0000 > @@ -23,6 +23,9 @@ > types are a mapping from an integer value to something meaningful in the > code. > > + >>> 1+1 > + 3 > + >>>> from lazr.enum import ( > ... EnumeratedType, DBEnumeratedType, Item, DBItem, use_template) > > And reran the tests and got this failure: > > Failure in test > /home/benji/workspace/launchpadlib/lazr.enum/trunk/src/lazr/enum/README.txt > Failed doctest test for README.txt > File > "/home/benji/workspace/launchpadlib/lazr.enum/trunk/src/lazr/enum/README.txt", > line 0 > > ---------------------------------------------------------------------- > File > "/home/benji/workspace/launchpadlib/lazr.enum/trunk/src/lazr/enum/README.txt", > line 26, in README.txt > Failed example: > 1+1 > Differences (ndiff with -expected +actual): > - 3 > + 2 > > Ran 1 tests with 1 failures and 0 errors in 0.011 seconds. > > -- > Benji York _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

