gh-94722: fix DocTest.__eq__ for case of no line number on one side (#112385)

This commit is contained in:
Irit Katriel 2023-11-25 17:23:43 +00:00 committed by GitHub
parent 19a1fc1b3d
commit fbb9027a03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,2 @@
Fix bug where comparison between instances of :class:`~doctest.DocTest` fails if
one of them has ``None`` as its lineno.