mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Allow docs to be built under Python 3
This commit is contained in:
parent
e28e10ded2
commit
7aacddf6ef
@ -77,6 +77,7 @@ MOCK_MODULES = [
|
||||
'yaml.nodes',
|
||||
'yaml.parser',
|
||||
'yaml.scanner',
|
||||
'salt.utils.yamlloader',
|
||||
'zmq',
|
||||
'zmq.eventloop',
|
||||
'zmq.eventloop.ioloop',
|
||||
@ -125,6 +126,7 @@ MOCK_MODULES = [
|
||||
'ClusterShell',
|
||||
'ClusterShell.NodeSet',
|
||||
'django',
|
||||
'docker',
|
||||
'libvirt',
|
||||
'MySQLdb',
|
||||
'MySQLdb.cursors',
|
||||
@ -169,7 +171,7 @@ MOCK_MODULES = [
|
||||
|
||||
for mod_name in MOCK_MODULES:
|
||||
if mod_name == 'psutil':
|
||||
mock = Mock(mapping={'total': 0}) # Otherwise it will crash Sphinx
|
||||
mock = Mock(mapping={'total': 0, 'version_info': (0, 6,0)}) # Otherwise it will crash Sphinx
|
||||
else:
|
||||
mock = Mock()
|
||||
sys.modules[mod_name] = mock
|
||||
|
Loading…
Reference in New Issue
Block a user