Remove unnecessary test imports. (#576)

This commit is contained in:
Felix Fontein
2023-02-12 20:59:55 +01:00
committed by GitHub
parent 65d1881f12
commit b08f6eefe8
9 changed files with 8 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ __metaclass__ = type
'''
Compat module for Python3.x's unittest.mock module
'''
import sys
import sys # noqa: F401, pylint: disable=unused-import
# Python 2.7
@@ -20,11 +20,11 @@ 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')