Files
sphinx/tests
François Freitag a1b8b1febb Ensure linkcheck items are comparable
Linkcheck organizes the URLs to checks in a PriorityQueue. The items are
tuples (priority, url, docname, lineno).

Tuples where the lineno is `None` are not comparable with tuples that
have an integer lineno, and PriorityQueue items must be comparable (see
https://bugs.python.org/issue31145).

Fixes an issue when a document contains two links to the same URL, one
with an int line number and the other without line number metadata (such
as an image :target: attribute).

Using 0 instead of None to represent no line number should not lead to
observable changes, the result logger only logs the line number when it
is truthy.

Close #8565
2020-12-22 21:18:31 +01:00
..
2020-11-20 19:43:02 +01:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-01-01 14:40:39 +09:00
2020-11-25 01:55:30 +09:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-01-01 14:27:43 +09:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-05-28 23:15:39 -04:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-11-25 01:55:30 +09:00
2020-11-11 13:19:05 +01:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00
2020-11-11 13:19:05 +01:00
2020-01-01 14:27:43 +09:00