Skip to content

Commit ed9207d

Browse files
authored
Fix lint (#7408)
1 parent 82cf540 commit ed9207d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@ def test_decode_jpeg_cuda(mode, img_path, scripted):
368368
# Some difference expected between jpeg implementations
369369
assert (img.float() - img_nvjpeg.cpu().float()).abs().mean() < 2
370370

371+
371372
@needs_cuda
372373
def test_decode_image_cuda_raises():
373374
data = torch.randint(0, 127, size=(255,), device="cuda", dtype=torch.uint8)
374-
exception_raised = True
375375
with pytest.raises(RuntimeError):
376376
decode_image(data)
377377

0 commit comments

Comments
 (0)