Remove unnecessary test imports (#5978)

Remove unnecessary test imports.
This commit is contained in:
Felix Fontein
2023-02-12 21:05:08 +01:00
committed by GitHub
parent 2b8ac3c629
commit 9f87989e7f
71 changed files with 70 additions and 121 deletions

View File

@@ -20,12 +20,12 @@ try:
# Allow wildcard import because we really do want to import all of mock's
# symbols into this compat shim
# pylint: disable=wildcard-import,unused-wildcard-import
from unittest.mock import *
from unittest.mock import * # noqa: F401, pylint: disable=unused-import
except ImportError:
# Python 2
# pylint: disable=wildcard-import,unused-wildcard-import
try:
from mock import *
from mock import * # noqa: F401, pylint: disable=unused-import
except ImportError:
print('You need the mock library installed on python2.x to run tests')