Xqt added a comment.

  In T249090#6017831 <https://phabricator.wikimedia.org/T249090#6017831>, 
@Dvorapa wrote:
  
  > Since this test formerly running on enwiki was fixed to run in nbwiki. It 
seems the redirection isn't handled somewhere in basic Site() creation, where 
it should.
  
  cannot reproduce it locally neither with Python 3.8 nor with Python 2.7:
  
    C:\pwb\GIT\core>py -2 pwb.py -lang:nb api_tests -v TestApiFunctions
    WARNING: C:\pwb\GIT\core\pywikibot\__init__.py:128: FutureWarning:
    
    Python 2.7.17 will be dropped soon.
    It is recommended to use Python 3.5 or above.
    See T213287 for further information.
    
      FutureWarning)  # probably adjust the line no in utils.execute()
    
    WARNING: C:\pwb\GIT\core\pywikibot\tools\ip.py:56: ImportWarning: ipaddress 
backport is defective; patching; install ipaddr
      ImportWarning)
    
    tests: max_retries reduced from 15 to 1
    WARNING: C:\pwb\GIT\core\pywikibot\tools\__init__.py:1790: UserWarning: 
Site wikipedia:no instantiated using different code "nb"
      return obj(*__args, **__kw)
    
    testObjectCreation (__main__.TestApiFunctions)
    Test api.Request() constructor with implicit site creation. ... 
C:\pwb\GIT\core\pywikibot\tools\__init__.py:1790: UserWarning: Site 
wikipedia:no instantiated using different code "nb"
      return obj(*__args, **__kw)
    ok
    
    ----------------------------------------------------------------------
    Ran 1 test in 1.164s
    
    OK

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

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

To: Xqt
Cc: Aklapper, Dvorapa, Xqt, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, 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