Skip to content

Commit fae5e7f

Browse files
committed
make linter happy
1 parent c593ac9 commit fae5e7f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

cuda_core/tests/memory_ipc/test_leaks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
HAVE_PSUTIL = True
1515
import pytest
1616

17-
from cuda.core.experimental._utils.cuda_utils import driver
18-
19-
2017
CHILD_TIMEOUT_SEC = 20
2118
NBYTES = 64
2219

23-
USING_FDS = True if platform.system() == "Linux" else False
20+
USING_FDS = platform.system() == "Linux"
2421
skip_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
)

cuda_core/tests/test_memory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)