Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/811976 )

Change subject: [tests] use ELLIPSIS for memento doctest for 'closest' result
......................................................................

[tests] use ELLIPSIS for memento doctest for 'closest' result

Change-Id: I0d3304f61a0b6af74417c43d5dcbad778e3da4ca
---
M pywikibot/data/memento.py
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/811976
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0d3304f61a0b6af74417c43d5dcbad778e3da4ca
Gerrit-Change-Number: 811976
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to