jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692317 )
Change subject: [doc] Update doc of ui_tests.Stream
......................................................................
[doc] Update doc of ui_tests.Stream
BytesIO instance are no longer supported with Python 3
Change-Id: Ie41b2d4087e4a576376213ba5c223b44743d7938
---
M tests/ui_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index 4f5e610..a4d7f7f 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -33,11 +33,11 @@
class Stream:
- """Handler for a StringIO or BytesIO instance able to patch itself."""
+ """Handler for a StringIO instance able to patch itself."""
def __init__(self, name: str, patched_streams: dict):
"""
- Create a new stream with a StringIO or BytesIO instance.
+ Create a new stream with a StringIO instance.
@param name: The part after 'std' (e.g. 'err').
@param patched_streams: A mapping which maps the original stream to
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692317
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: Ie41b2d4087e4a576376213ba5c223b44743d7938
Gerrit-Change-Number: 692317
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692322 )
Change subject: [tests] Additional processing hints
......................................................................
[tests] Additional processing hints
Change-Id: I9abecd69e8f1ea8e8398cbc3cd9b0e91e45f20f8
---
M pywikibot/userinterfaces/terminal_interface_base.py
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/userinterfaces/terminal_interface_base.py b/pywikibot/userinterfaces/terminal_interface_base.py
index 6b9a587..e9e2cf5 100755
--- a/pywikibot/userinterfaces/terminal_interface_base.py
+++ b/pywikibot/userinterfaces/terminal_interface_base.py
@@ -209,8 +209,9 @@
print('######### SIZE is >0 but QUEUE is EMPTY #####')
while not self.cache.empty():
args, kwargs = self.cache.get_nowait()
- print('###', args)
+ print('##>', args)
self.stream_output(*args, **kwargs)
+ print('##<')
print('<<< flush:', self.cache.qsize())
def cache_output(self, *args, **kwargs):
@@ -232,7 +233,7 @@
*New in version 6.2*
"""
- print('>>> stream_output:', text)
+ print('>>> stream_output:', text, file=sys.stdout, flush=True)
if config.transliterate:
# Encode our unicode string in the encoding used by the user's
# console, and decode it back to unicode. Then we can see which
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692322
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: tests
Gerrit-Change-Id: I9abecd69e8f1ea8e8398cbc3cd9b0e91e45f20f8
Gerrit-Change-Number: 692322
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged