jayvdb edited the task description. (Show Details)

EDIT DETAILS
...
`unitest.assertRaisesRegex` has an extra parameter to check the exception message, and should be used instead. By checking the exception message, the unit test verifies that the exception is precisely the one which was expected, rather than only of the same type as expected.

pywikibot has 33 unit test modules that use `assertRaises` and need upgrading:
...

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

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

To: jayvdb
Cc: Aklapper, pywikibot-bugs-list, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to