Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
def test_namespace_none(self) -> None:
"""Test ListGenerator set_namespace with None."""
self.gen = api.ListGenerator(listaction='allpages',
site=self.site)
> with self.assertRaisesRegex(
TypeError,
(r'int\(\) argument must be a string, a bytes-like object '
r"or (?:a real number|a number), not 'NoneType'")):
self.gen.set_namespace(None)
leads to
if __name__ == '__main__':
with suppress(SystemExit):
E AssertionError: "int\(\) argument must be a string, a bytes-like
object or (?:a real number|a number), not 'NoneType'" does not match "int()
argument must be a string, a bytes-like object or a number, not NoneType"
TASK DETAIL
https://phabricator.wikimedia.org/T413710
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]