Fix doc build for metaclassed Polynomials

This commit is contained in:
Sterling Harper 2016-08-12 11:32:31 -05:00
parent 88ce91502c
commit 5b219fd6aa
2 changed files with 8 additions and 8 deletions

View file

@ -28,6 +28,9 @@ MOCK_MODULES = ['numpy', 'numpy.polynomial', 'numpy.polynomial.polynomial',
'h5py', 'pandas', 'opencg']
sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)
import numpy as np
np.polynomial.Polynomial = MagicMock
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the