Xqt created this task. Xqt added projects: Pywikibot-tests, good first task. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. Restricted Application added a project: Pywikibot.
TASK DESCRIPTION Introduction ------------ Before dropping Python 2 support with Pywikibot `unittests2` was used for Python 2 tests due to T106512 <https://phabricator.wikimedia.org/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 <https://codesearch.wmcloud.org/pywikibot/?q=from%20tests(%5C.aspects)%3F%20import%20unittest&i=nope&files=&excludeFiles=&repos=> 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 - refer our Coding Convention Guidlines <https://www.mediawiki.org/wiki/Manual:Pywikibot/Development#Guidelines> TASK DETAIL https://phabricator.wikimedia.org/T272235 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, Annysah01, Rohitgeddam, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, wiki-helenatxu, Viztor, Wenyi, Kieubinhtb, Tks4Fish, Mh-3110, Asad_Ali_Palijo, Lahi, Soteriaspace, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
