Skip to content

Commit 3c6bc98

Browse files
committed
prefer newer unittest.mock from standard library
1 parent 715bb0c commit 3c6bc98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
import sys, os
1515

1616
#Mock unavailable packages for ReadTheDocs
17-
import mock
17+
try:
18+
from unitttest import mock
19+
except ImportError:
20+
import mock
1821

1922
MOCK_MODULES = ['numpy',
2023
'nibabel',

0 commit comments

Comments
 (0)