Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/692309 )
Change subject: [tests] Additional processing hints ......................................................................
[tests] Additional processing hints
Change-Id: I11355358c6e373c45cee3957e90b79f4d1873aad --- M pywikibot/userinterfaces/terminal_interface_base.py M tox.ini 2 files changed, 9 insertions(+), 9 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 f2bd888..00b5360 100755 --- a/pywikibot/userinterfaces/terminal_interface_base.py +++ b/pywikibot/userinterfaces/terminal_interface_base.py @@ -196,28 +196,28 @@ in cache. They will be printed with next unlocked output call or at termination time. """ - print('>>> output', text) + print('>>> output:', text) self.cache_output(text, toStdout, targetStream) if not self.lock.locked(): self.flush() - print('<<< output', text) + print('<<< output:', text)
def flush(self): """Output cached text.""" - print('>>> flush') + print('>>> flush:', self.cache.qsize()) while not self.cache.empty(): args, kwargs = self.cache.get_nowait() self.stream_output(*args, **kwargs) - print('<<< flush') + print('<<< flush:', self.cache.qsize())
def cache_output(self, *args, **kwargs): """Put text to cache.
*New in version 6.2* """ - print('>>> cache_output', args) + print('>>> cache_output:', self.cache.qsize(), args) self.cache.put_nowait((args, kwargs)) - print('<<< cache_output', args) + print('<<< cache_output:', self.cache.qsize(), args)
def stream_output(self, text, toStdout=False, targetStream=None): """ @@ -229,7 +229,7 @@
*New in version 6.2* """ - print('>>> stream_output', text) + print('>>> stream_output:', text) 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 @@ -281,7 +281,7 @@ targetStream = self.stderr
self._print(text, targetStream) - print('<<< stream_output', text) + print('<<< stream_output:', text)
def _raw_input(self): # May be overridden by subclass diff --git a/tox.ini b/tox.ini index 7bf0112..bfac27f 100644 --- a/tox.ini +++ b/tox.ini @@ -100,7 +100,7 @@ # D412: No blank lines allowed between a section header and its content # D413: Missing blank line after last section
-ignore = B007,C103,D105,D211,D401,D413,D412,FI1,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503 +ignore = T001,B007,C103,D105,D211,D401,D413,D412,FI1,H101,H238,H301,H306,H404,H405,H903,P101,P102,P103,P205,W503 enable-extensions = H203,H204,H205 exclude = .tox,.git,./*.egg,build,scripts/archive/*,./scripts/i18n/*,./tests/archive/* classmethod-decorators = classmethod,classproperty
pywikibot-commits@lists.wikimedia.org