Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **List of steps to reproduce** (step by step, including full links if 
applicable):
  `pwb site_detect_tests -v APIDisabledTestCase`
  
  **What happens?**:
  
  The test fails, the api is available for linuxquestiony, e.g.
  
https://wiki.linuxquestions.org/api.php?action=query&meta=siteinfo&siprop=general%7Cnamespaces%7Cnamespacealiases%7Cstatistics
  
    tests: max_retries reduced from 15 to 1
    test_linuxquestions (__main__.APIDisabledTestCase)
    Test detection of MediaWiki sites for wiki.linuxquestions.org. ... FAIL
    
    ======================================================================
    FAIL: test_linuxquestions (__main__.APIDisabledTestCase)
    Test detection of MediaWiki sites for wiki.linuxquestions.org.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File ".\tests\site_detect_tests.py", line 185, in test_linuxquestions
        self.assertNoSite('http://wiki.linuxquestions.org/wiki/$1')
      File ".\tests\site_detect_tests.py", line 47, in assertNoSite
        with self.assertRaises((AttributeError,
    AssertionError: (<class 'AttributeError'>, <class 'RuntimeError'>, <class 
'pywikibot.exceptions.ServerError'>, <class 
'requests.exceptions.ConnectionError'>, <class 'requests.exceptions.Timeout'>, 
<class 'requests.exceptions.TooManyRedirects'>) not raised
    
    ----------------------------------------------------------------------
    Ran 1 test in 1.529s

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to