Xqt created this task.
Xqt added a project: Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Pywikibot.
TASK DESCRIPTION
C:\pwb\GIT\core>pwb api_tests -v TestAPIMWException.test_API_error
tests: max_retries reduced from 15 to 1
test_API_error (__main__.TestAPIMWException)
Test a static request. ... ERROR: APIMWException: internal_api_error_fake:
Fake error message
[servedby: unittest]
ERROR
======================================================================
ERROR: test_API_error (__main__.TestAPIMWException)
Test a static request.
----------------------------------------------------------------------
Traceback (most recent call last):
File ".\tests\api_tests.py", line 103, in test_API_error
self.assertRaises(api.APIMWException, req.submit)
File "C:\Python38\lib\unittest\case.py", line 816, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "C:\Python38\lib\unittest\case.py", line 202, in handle
callable_obj(*args, **kwargs)
File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1864, in submit
self._add_defaults()
File "C:\pwb\GIT\core\pywikibot\data\api.py", line 1392, in _add_defaults
and self.site.mw_version >= '1.25wmf5'):
TypeError: '>=' not supported between instances of 'property' and 'str'
----------------------------------------------------------------------
Ran 1 test in 1.134s
FAILED (errors=1)
TASK DETAIL
https://phabricator.wikimedia.org/T264096
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, JohnsonLee01, SHEKH, Dijkstra, Khutuck,
Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs