Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cuda_core/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -11,3 +11,5 @@ markers =
agent_authored(model): agent-authored test not yet materially human-reviewed
human_reviewed: agent-authored test materially reviewed or rewritten by a human
human_authored: test authored primarily by a human
thread_unsafe(reason): test is not safe to run concurrently with other tests (e.g. uses mocks, patches globals, or mutates shared CUDA state)
parallel_threads_limit(n): cap the number of parallel threads pytest-run-parallel uses for this test or module
4 changes: 4 additions & 0 deletions cuda_core/tests/system/test_system_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ def test_cooler():
assert all(isinstance(t, typing.CoolerTarget) for t in target)


@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def test_temperature():
for device in system.Device.get_all_devices():
temperature = device.temperature
Expand All @@ -695,6 +696,9 @@ def test_temperature():

# By docs, should be supported on KEPLER or newer, but experimentally,
# is also unsupported on other hardware.
# get_threshold emits DeprecationWarning for some thresholds on Ada+;
# that behaviour is tested separately in
# test_temperature_threshold_unrecognized_device_arch.
with unsupported_before(device, None):
for threshold in list(typing.TemperatureThresholds):
t = temperature.get_threshold(threshold)
Expand Down
4 changes: 2 additions & 2 deletions cuda_core/tests/test_object_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def test_hash_distinct_same_type(a_name, b_name, request):
assert hash(obj_a) != hash(obj_b) # extremely unlikely


@pytest.mark.parametrize("a_name,b_name", itertools.combinations(HASH_TYPES, 2))
@pytest.mark.parametrize("a_name,b_name", list(itertools.combinations(HASH_TYPES, 2)))
def test_hash_distinct_cross_type(a_name, b_name, request):
"""Distinct objects of different types have different hashes."""
obj_a = request.getfixturevalue(a_name)
Expand All @@ -774,7 +774,7 @@ def test_equality_basic(fixture_name, request):
assert obj != obj.handle


@pytest.mark.parametrize("a_name,b_name", itertools.combinations(EQ_TYPES, 2))
@pytest.mark.parametrize("a_name,b_name", list(itertools.combinations(EQ_TYPES, 2)))
def test_no_cross_type_equality(a_name, b_name, request):
"""No two distinct objects of different types should compare equal."""
obj_a = request.getfixturevalue(a_name)
Expand Down
Loading