-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
doctest
fails to compare tracebacks with notes
#111159
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
Comments
…notes (pythonGH-111160) (cherry picked from commit fd60549) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
…notes (pythonGH-111160) (cherry picked from commit fd60549) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
With this change in place, I now get a (reproducible) doctest failure in lxml that seems rather random:
I'm not using "notes" anywhere in the file (and wouldn't know what I'd use them for), so this breaks existing tests. |
Thanks, I will have a look! |
I think the problem is with subclasses of |
… classes (pythonGH-111541) (cherry picked from commit 18c9548) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
… classes (pythonGH-111541) (cherry picked from commit 18c9548) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Anything left for this issue or can it be closed? Thanks! |
Bug report
Minimal reproducer:
Now, run it, you will get a very strange error:
Things that do not help:
IGNORE_EXCEPTION_DETAIL
ELLIPSIS
Related to how exceptions with notes are represented in
cpython/Lib/doctest.py
Line 1396 in 7237fb5
I am working on this issue right now :)
Refs #111157
Linked PRs
doctest
output comparison for exceptions with notes #111160doctest
output comparison for exceptions with notes (GH-111160) #111169doctest
output comparison for exceptions with notes (GH-111160) #111170SyntaxError
doctests for non-builtin exception classes #111541SyntaxError
doctests for non-builtin exception classes (GH-111541) #111732SyntaxError
doctests for non-builtin exception classes (GH-111541) #111733The text was updated successfully, but these errors were encountered: