Skip to content

Commit

Permalink
Added winreg to list of mocked modules for the Read-the-Docs builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-hen committed May 17, 2020
1 parent 6f3c546 commit 517e216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
sys.path.insert(0, str(main))

# Mock external dependencies so they are not required at build time.
autodoc_mock_imports = ['jpype', 'numpy']
for package in ('jpype', 'jpype.types', 'jpype.imports', 'numpy'):
autodoc_mock_imports = ['jpype', 'numpy', 'winreg']
for package in ('jpype', 'jpype.types', 'jpype.imports', 'numpy', 'winreg'):
sys.modules[package] = MagicMock()

# Import package to make meta data available.
Expand Down

0 comments on commit 517e216

Please sign in to comment.