Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692313 )
Change subject: [tests] Additional processing hints ......................................................................
[tests] Additional processing hints
Change-Id: I6c5537b3524a126eb5d6a3e9e1a927eb6c570d6d --- M pywikibot/userinterfaces/terminal_interface_base.py 1 file changed, 3 insertions(+), 0 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 00b5360..6b9a587 100755 --- a/pywikibot/userinterfaces/terminal_interface_base.py +++ b/pywikibot/userinterfaces/terminal_interface_base.py @@ -205,8 +205,11 @@ def flush(self): """Output cached text.""" print('>>> flush:', self.cache.qsize()) + if self.cache.qsize() and self.cache.empty(): + print('######### SIZE is >0 but QUEUE is EMPTY #####') while not self.cache.empty(): args, kwargs = self.cache.get_nowait() + print('###', args) self.stream_output(*args, **kwargs) print('<<< flush:', self.cache.qsize())
pywikibot-commits@lists.wikimedia.org