Skip to content

Commit 4cbc531

Browse files
committed
tests: add missing sys import to event_ipc, dup_import, peer_access
The kill() calls print to sys.stderr -- these three files were missing the import and would have raised NameError at runtime under the hang path.
1 parent 929cd6f commit 4cbc531

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

cuda_core/tests/memory_ipc/test_event_ipc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import multiprocessing as mp
5+
import sys
56

67
import pytest
78
from helpers.buffers import compare_equal_buffers, make_scratch_buffer

cuda_core/tests/memory_ipc/test_ipc_duplicate_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import contextlib
1313
import multiprocessing as mp
14+
import sys
1415

1516
import pytest
1617
from helpers.logging import TimestampedLogger

cuda_core/tests/memory_ipc/test_peer_access.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import multiprocessing as mp
5+
import sys
56

67
import pytest
78
from helpers.buffers import PatternGen

0 commit comments

Comments
 (0)