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 warning for all related tests or
- don't throw this warning if a test is running or
- clear_sites dict after tests are done or
- ?