Xqt added a comment.

  Probably a windows problem?
  
    C:\pwb\GIT\core>pwb shell
    Welcome to the Pywikibot interactive shell!
    >>> from tests.utils import execute_pwb
    tests: max_retries reduced from 15 to 1
    >>> import io
    >>> stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)
    >>> stderr = io.StringIO(stream['stderr'])
    >>> print(stderr.read())
    
    >>> import sys
    >>> sys.version
    '3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit 
(Intel)]'
    >>> stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)
    >>> stderr = io.StringIO(stream['stderr'])
    >>> print(stderr.read())
    
    >>>
  
  
  
    C:\pwb\GIT\core>py -2 pwb.py shell
    WARNING: C:\pwb\GIT\core\pywikibot\tools\ip.py:71: ImportWarning: Importing 
ipad
    dr.IPAddress failed: No module named ipaddr
    Importing ipaddress.ip_address failed: No module named ipaddress
    Please install ipaddr 2.1.10+ or ipaddress.
      % (_ipaddr_e, _ipaddress_e), ImportWarning)
    
    WARNING: C:\pwb\GIT\core\pywikibot\__init__.py:125: FutureWarning:
    Python 2.7.13 will be dropped in 2020.
    It is recommended to use Python 3.5 or above.
    See T213287 for further information.
    
      FutureWarning)
    
    Welcome to the Pywikibot interactive shell!
    >>> from tests.utils import execute_pwb
    tests: max_retries reduced from 15 to 1
    >>> import io
    >>> stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)
    >>> stderr = io.StringIO(stream['stderr'])
    >>> print(stderr.read())
    
    >>> import sys
    >>> sys.version
    '2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit 
(Intel)
    ]'
    >>>
  
  On **IDLE**:
  
    >>> from tests.utils import execute_pwb
    tests: max_retries reduced from 15 to 1
    >>> import io
    >>> stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)
    >>> stderr = io.StringIO(stream['stderr'])
    >>> print(stderr.read())
    
    >>> import sys
    >>> sys.version
    '2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit 
(Intel)]'
    >>> 
  
  
  
    >>> import pwb
    >>> import pywikibot
    >>> from tests.utils import execute_pwb
    tests: max_retries reduced from 15 to 1
    >>> import io
    >>> stream = execute_pwb(['hello'], data_in=chr(3), timeout=6)
    >>> stderr = io.StringIO(stream['stderr'])
    >>> print(stderr.read())
    
    >>> import sys
    >>> sys.version
    '3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit 
(Intel)]'
    >>> 
  
  But it works via batch with Python 3.7 but fails with Python 2.7. Anyway we 
have the same problem at Appveyor. Therefore I proposed to skip the test for 
Python 2 (until w have a better solution)

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

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

To: Xqt
Cc: Dvorapa, 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, 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