Re: doctest bug with nested triple quotes

2005-08-02 Thread Michele Simionato
This is my file $ python -c "print open('x.py').read().encode('base64')" IiIiCj4+PiBkdW1teSA9ICcnJwpzb21ldGhpbmcKaGVyZQonJycKIiIiCmltcG9ydCBkb2N0ZXN0 OyBkb2N0ZXN0LnRlc3Rtb2QoKQo= but anyway I think Peter Otten is right, the problem is with the missing dots. It makes sense, actually, but for some r

Re: doctest bug with nested triple quotes

2005-08-01 Thread Peter Otten
Michele Simionato wrote: > I am getting trouble with nested triple quoted strings in doctest. > For instance > > $ cat x.py > """ dummy = ''' > something > here > ''' > """ > import doctest; doctest.testmod() > > $ python x.py > > ***

Re: doctest bug with nested triple quotes

2005-08-01 Thread Paolino
I can't reproduce the error. Freebsd,python 2.4 runs it. > cat x.py """ dummy = ''' something here ''' """ import doctest; doctest.testmod() > python x.py > maybe the file is different. > python -c "print open('x.py').read().encode('base64')" IiIiCmR1bW15ID0gJycnCgpzb21ldGhpbmcKaGVyZQonJycKI