Xqt submitted this change.
[tests] use ELLIPSIS for memento doctest for 'closest' result
Change-Id: I0d3304f61a0b6af74417c43d5dcbad778e3da4ca
---
M pywikibot/data/memento.py
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pywikibot/data/memento.py b/pywikibot/data/memento.py
index b8cfc9b..109c817 100644
--- a/pywikibot/data/memento.py
+++ b/pywikibot/data/memento.py
@@ -54,10 +54,10 @@
['closest', 'first', 'last', 'next', 'prev']
>>> del mc['mementos']['last']
>>> from pprint import pprint
- >>> pprint(mc['mementos'])
- {'closest': {'datetime': datetime.datetime(2010, 2, 28, 8, 5, 38),
+ >>> pprint(mc['mementos']) # doctest: +ELLIPSIS
+ {'closest': {'datetime': datetime.datetime(2010, 2, 28, ...),
'http_status_code': 200,
- 'uri': ['https://swap.stanford.edu/20100228080538/http://www.bbc.co.uk/']},
+ 'uri': ['https://swap.stanford.edu/.../']},
'first': {'datetime': datetime.datetime(1998, 12, 2, 21, 26, 10),
'uri': ['http://wayback.nli.org.il:8080/19981202212610/http://bbc.com/']},
'next': {'datetime': datetime.datetime(2010, 5, 23, 13, 47, 38),
To view, visit change 811976. To unsubscribe, or for help writing mail filters, visit settings.