File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change 10
10
# add these directories to sys.path here. If the directory is relative to the
11
11
# documentation root, use os.path.abspath to make it absolute, like shown here.
12
12
import os
13
- import sys
14
- from unittest .mock import MagicMock
15
13
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('.'))
18
16
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
40
17
41
18
# -- Project information -----------------------------------------------------
42
19
You can’t perform that action at this time.
0 commit comments