Introduction
Before dropping Python 2 support with Pywikibot unittests2 was used for Python 2 tests due to T106512 but Standard unittest for Python 3 tests. Therefore unittest was always imported from tests.aspects which imported it from tests. Now it is no longer necessary to import unittest module from tests.aspects or from tests.
What to do:
- replace all occurences of from tests.aspects import unittest with import unittest
- replace all occurences of from tests import unittest with import unittest
- Update date in copyright string from 2020 to 2021
The issues can be found here
Important hints
- respect import order, see https://www.mediawiki.org/wiki/Manual:Pywikibot/Development/Guidelines#Follow_pep8; unittest is part of the Standard library and must be placed in the first section in alphabetical order, for example:
import re import unittest import pywikibot from tests.aspects import testCase