Download code/models/common/tests/test_conftest_device_fatal.py from tt-hous/clef: direct link, hf CLI and curl.
- Browser
- Download file 935 Bytes
-
https://huggingface.co/tt-hous/clef/resolve/main/code/models/common/tests/test_conftest_device_fatal.py
- Command line
-
hf download hf://tt-hous/clef/code/models/common/tests/test_conftest_device_fatal.py
-
curl -L -o test_conftest_device_fatal.py https://huggingface.co/tt-hous/clef/resolve/main/code/models/common/tests/test_conftest_device_fatal.py
935 Bytes
| # SPDX-FileCopyrightText: © 2026 Tenstorrent AI ULC | |
| # SPDX-License-Identifier: Apache-2.0 | |
| import pytest | |
| from models.common.tests.conftest import _is_device_fatal_error | |
| class PcieHangError(Exception): | |
| pass | |
| def test_device_fatal_hang_signatures(exc): | |
| assert _is_device_fatal_error(exc) | |
| def test_benign_device_errors_are_not_fatal(exc): | |
| assert not _is_device_fatal_error(exc) | |