Xqt added a comment.

  In T224364#5220334 <https://phabricator.wikimedia.org/T224364#5220334>, 
@Dalba wrote:
  
  > > is not deterministic
  >
  > But why? Which part of the test/script is causing this behaviour?
  
  
  the result of `stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)`
  is assigned in `stderr = io.StringIO(stream['stderr'])`
  but there is a different behaviour in Python 2 and 3 for 
`print(stderr.read())`:
  
  Python 2.7 gives an empty line whereas
  Python 3.7 mostly*) gives:
  
    ERROR: hello.py not found! Misspelling?
    NOTE: Starting the most similar script shell.py ***
          in 5.0 seconds; type CTRL-C to stop.
    Welcome to the Pywikibot interactive shell!
  
  *) In rare cases Python 3.7 also gives an empty line

TASK DETAIL
  https://phabricator.wikimedia.org/T224364

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Lokal_Profil, Dalba, Framawiki, Aklapper, Xqt, pywikibot-bugs-list, 
Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, joker88john, Viztor, DannyS712, 
CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, 
Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, 
Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, WSH1906, 
Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to