File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1414 HAVE_PSUTIL = True
1515import pytest
1616
17- from cuda .core .experimental ._utils .cuda_utils import driver
18-
19-
2017CHILD_TIMEOUT_SEC = 20
2118NBYTES = 64
2219
23- USING_FDS = True if platform .system () == "Linux" else False
20+ USING_FDS = platform .system () == "Linux"
2421skip_if_unrunnable = pytest .mark .skipif (
2522 not USING_FDS or not HAVE_PSUTIL , reason = "mempool allocation handle is not using fds or psutil is unavailable"
2623)
Original file line number Diff line number Diff line change @@ -426,7 +426,6 @@ def test_mempool_attributes_ownership(mempool_device):
426426 device = mempool_device
427427 mr = DeviceMemoryResource (device , dict (max_size = POOL_SIZE ))
428428 attributes = mr .attributes
429- old_handle = mr .handle
430429 mr .close ()
431430 del mr
432431
@@ -436,7 +435,7 @@ def test_mempool_attributes_ownership(mempool_device):
436435
437436 # Even when a new object is created (we found a case where the same
438437 # mempool handle was really reused).
439- mr = DeviceMemoryResource (device , dict (max_size = POOL_SIZE ))
438+ mr = DeviceMemoryResource (device , dict (max_size = POOL_SIZE )) # noqa: F841
440439 with pytest .raises (RuntimeError , match = "DeviceMemoryResource is expired" ):
441440 _ = attributes .used_mem_high
442441
You can’t perform that action at this time.
0 commit comments