New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doctest handles comments incorrectly #37774
Comments
> > import doctest, test
> > def aTest():
> > r""">>> # A comment
> > ... print 'This is incorrectly ignored
by doctest'
> > This output here really doesn't matter
either... (but SHOULD)
> > >>>
> > """ the patch fixes that and passes the original doctest |
Logged In: YES The file attachment didn't make it. |
Logged In: YES Alexander, you need to check the "Check to Upload and |
Logged In: YES It's intentional that doctest looks for PS1 to identify lines that In your specific example, change the doctest to use PS1 While I'm rejecting this patch, I'd be happy to see a patch to |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: