jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1286980?usp=email )
Change subject: tests: Remove doctest for EventStreams
......................................................................
tests: Remove doctest for EventStreams
pprint style of Python 3.15 has been changed.
Bug: T426207
Change-Id: I4812c263541e47d5b7e2fddc4d547c5912d86344
---
M pywikibot/comms/eventstreams.py
1 file changed, 1 insertion(+), 12 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/comms/eventstreams.py b/pywikibot/comms/eventstreams.py
index 38d08f7..2dca98a 100644
--- a/pywikibot/comms/eventstreams.py
+++ b/pywikibot/comms/eventstreams.py
@@ -61,7 +61,7 @@
>>> print(msg) # doctest: +SKIP
edit on page Q2190037 by KrBot.
>>> from pprint import pprint
- >>> pprint(change, width=75) # doctest: +SKIP
+ >>> pprint(change, width=75, indent=1) # doctest: +SKIP
{'$schema': '/mediawiki/recentchange/1.0.0',
'bot': True,
'comment': '/* wbsetreference-set:2| */ [[Property:P10585]]: 96FPN, см. '
@@ -98,17 +98,6 @@
'type': 'edit',
'user': 'KrBot',
'wiki': 'wikidatawiki'}
- >>> pprint(next(stream), width=75) # doctest: +ELLIPSIS
- {'$schema': '/mediawiki/recentchange/1.0.0',
- 'bot': True,
- ...
- 'server_name': 'www.wikidata.org',
- 'server_script_path': '/w',
- 'server_url': 'https://www.wikidata.org',
- ...
- 'type': 'edit',
- 'user': ...,
- 'wiki': 'wikidatawiki'}
>>> del stream
.. version-changed:: 7.6
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1286980?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I4812c263541e47d5b7e2fddc4d547c5912d86344
Gerrit-Change-Number: 1286980
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]