Skip to content

Commit 657e62b

Browse files
committed
revert conf
1 parent dd6de74 commit 657e62b

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

cuda_core/docs/source/conf.py

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,10 @@
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
import os
13-
import sys
14-
from unittest.mock import MagicMock
1513

16-
# # Add the path to your module
17-
# sys.path.insert(0, os.path.abspath('../..'))
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
1816

19-
# # Mock the cuda module and its submodules
20-
# class Mock(MagicMock):
21-
# @classmethod
22-
# def __getattr__(cls, name):
23-
# return MagicMock()
24-
25-
# MOCK_MODULES = ['cuda.core.experimental._system']
26-
# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
27-
28-
# class SystemMock(MagicMock):
29-
# __doc__ = "Singleton instance of :obj:`~cuda.core.experimental._system.System`"
30-
31-
32-
# # Mock the System class within the _system module
33-
# sys.modules['cuda.core.experimental._system'].System = SystemMock
34-
35-
# # Create a specific mock for the system instance
36-
# system_mock = SystemMock()
37-
38-
# # Ensure the system instance is correctly mocked
39-
# sys.modules['cuda.core.experimental._system']._system_instance = system_mock
4017

4118
# -- Project information -----------------------------------------------------
4219

0 commit comments

Comments
 (0)