Merge pull request #1098 from GLolol/tests/use-internal-mock

tests: Use internal mock from Python 3.3+ if available
This commit is contained in:
Valentin Lorentz 2015-04-28 00:23:04 +02:00
commit 758dc6d57f

View File

@ -38,7 +38,10 @@ else:
skipif = lambda x, y: lambda z:None
try:
import mock
from unittest import mock # Python 3.3+
except ImportError:
try:
import mock # Everything else, an external 'mock' library
except ImportError:
mock = None