To simplify, sphinx uses external mock package even if unittest.mock exists.

This commit is contained in:
shimizukawa
2016-10-15 16:22:27 +09:00
parent ec8dd32e35
commit 487f3db5f6
12 changed files with 20 additions and 26 deletions

View File

@@ -28,12 +28,6 @@ from sphinx.pycode import ModuleAnalyzer
from path import path, repr_as # NOQA
try:
# Python >=3.3
from unittest import mock
except ImportError:
import mock
__all__ = [
'rootdir', 'tempdir', 'raises', 'raises_msg',
@@ -41,7 +35,6 @@ __all__ = [
'ListOutput', 'TestApp', 'with_app', 'gen_with_app',
'path', 'with_tempdir',
'sprint', 'remove_unicode_literals',
'mock',
]