Xqt added a comment.
In T282962#7090973 <https://phabricator.wikimedia.org/T282962#7090973>, @valhallasw wrote: > Ooof. That was a long time ago :-) > > - The job seems to have an unrelated issue wrt generating a musicbrainz family file > - My hypothesis: ui_tests monkey-patches ui._print and ui._raw_input as 'lowest level' methods to capture the output. _print is only called when the stream is flushed which _may_ not happen until all the way at the end, when the process ends. (but it can happen if the lock is unlocked at the right time... so 'it depends') > - Adding a tactical .flush() before trying to assert anything probably solves the issue? Thanks a lot for your ideas. I tried to reproduce it locally but it always succeded with both unittest and pytest. But flushing looks like a good idea to try it out. TASK DETAIL https://phabricator.wikimedia.org/T282962 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: valhallasw, Aklapper, Xqt, pywikibot-bugs-list, Shalomori123, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org