Skip to content

Commit 2451985

Browse files
sebergleofang
andcommitted
Apply suggestions from code review
Co-authored-by: Leo Fang <leo80042@gmail.com> Signed-off-by: Sebastian Berg <sebastianb@nvidia.com>
1 parent dca3469 commit 2451985

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cuda_bindings/tests/test_cufile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ def cufileVersionLessThan(target):
8080

8181
@pytest.fixture(scope="session")
8282
def skipIfUnsupportedFilesystem(tmpdir_factory):
83-
"""Fixture that skips if the current filesystem is supported (ext4 or xfs).
83+
"""Fixture that skips if the current filesystem is not supported (ext4 or xfs).
8484
8585
The actual requirements are probably both stricter (ext4 was not working on CI previously)
8686
and possibly also less strict.
8787
8888
This uses `findmnt` so the kernel's mount table logic owns the decoding of the filesystem type.
8989
"""
9090
cmd = ["findmnt", "-no", "FSTYPE", "-T", tmpdir_factory.getbasetemp()]
91-
fs_type = subprocess.check_output(cmd, text=True).strip() # noqa S603, S607
91+
fs_type = subprocess.check_output(cmd, text=True).strip() # noqa: S603
9292
logging.info(f"Current filesystem type (findmnt): {fs_type}")
9393
if fs_type not in ("ext4", "xfs"):
9494
pytest.skip("cuFile handle_register requires ext4 or xfs filesystem")

0 commit comments

Comments
 (0)