[stalbe-5] Remove unnecessary test imports (#5980)

Remove unnecessary test imports (#5978)

Remove unnecessary test imports.

(cherry picked from commit 9f87989e7f)
This commit is contained in:
Felix Fontein
2023-02-12 21:32:49 +01:00
committed by GitHub
parent 24210b32cf
commit 66e3c19a57
66 changed files with 96 additions and 114 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')