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
During tests there are some Userwarnings:
WARNING: c:\projects\pywikibot-g4xqx\pywikibot\bot.py:907: UserWarning:
Site objects have been created before arguments were handled
UserWarning)
This occures for script test which uses pywikibot.handle_args and using Site
objects. If there are multiple tests using handle_args and Site object the
second use of handle_args causes this warning because the global variable
_sites is no longer empty and contains Site objects.
How to proceed in this matter?
- filter this warning for all tests or
- filter this warnign for all related tests or
- don't throw this warning if a test is running or
- clear_sites dict after tests are done or
- ?
TASK DETAIL
https://phabricator.wikimedia.org/T225594
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Viztor, DannyS712, 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