File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 33
44 .. module :: cuda.bindings.utils
55
6- Utils module
7- ============
6+ utils
7+ =====
88
99Functions
1010---------
1111
1212.. autosummary ::
1313 :toctree: generated/
1414
15+ get_cuda_native_handle
1516 get_minimal_required_cuda_ver_from_ptx_ver
1617 get_ptx_ver
Original file line number Diff line number Diff line change @@ -75,10 +75,15 @@ def test_get_handle(target):
7575 assert handle == ptr
7676
7777
78- def test_get_handle_error ():
79- obj = (1 , 2 , 3 , 4 )
80- with pytest .raises (TypeError ) as e :
81- handle = get_cuda_native_handle (obj )
82- obj = 1234
78+ @pytest .mark .parametrize (
79+ "target" ,
80+ (
81+ (1 , 2 , 3 , 4 ),
82+ [5 , 6 ],
83+ {},
84+ None ,
85+ )
86+ )
87+ def test_get_handle_error (target ):
8388 with pytest .raises (TypeError ) as e :
84- handle = get_cuda_native_handle (obj )
89+ handle = get_cuda_native_handle (target )
You can’t perform that action at this time.
0 commit comments