We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6f9e2 commit 3198414Copy full SHA for 3198414
1 file changed
cuda_core/tests/test_program_cache.py
@@ -1492,9 +1492,11 @@ def test_filestream_cache_path_backed_object_code_missing_file_message(tmp_path)
1492
path_backed = ObjectCode.from_cubin(str(src), name="gone")
1493
src.unlink()
1494
1495
- with FileStreamProgramCache(tmp_path / "fc-missing") as cache:
1496
- with pytest.raises(FileNotFoundError, match="path-backed ObjectCode") as excinfo:
1497
- cache[b"k"] = path_backed
+ with (
+ FileStreamProgramCache(tmp_path / "fc-missing") as cache,
+ pytest.raises(FileNotFoundError, match="path-backed ObjectCode") as excinfo,
1498
+ ):
1499
+ cache[b"k"] = path_backed
1500
assert str(src) in str(excinfo.value)
1501
1502
0 commit comments