Skip to content

Commit

Permalink
adding a pytest mark "cufile" for tests that requires cufile
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 27, 2024
1 parent 032c326 commit 77826ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/kvikio/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,6 @@ filterwarnings = [
"ignore:Jitify is performing a one-time only warm-up to populate the persistent cache",
"ignore::DeprecationWarning:botocore.*",
]
markers = [
"cufile: tests to skip if cuFile isn't available e.g. run with `pytest -m 'not cufile'`"
]
4 changes: 3 additions & 1 deletion python/kvikio/tests/test_cufile_driver.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.

import pytest

import kvikio.cufile_driver
import kvikio.defaults


@pytest.mark.cufile
def test_open_and_close():
kvikio.cufile_driver.driver_open()
kvikio.cufile_driver.driver_close()

0 comments on commit 77826ee

Please sign in to comment.