Skip to content

Commit ea1dd93

Browse files
committed
Fix??
1 parent 5c83466 commit ea1dd93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/smoke_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ def smoke_test_torchvision_read_decode() -> None:
3434
raise RuntimeError(f"Unexpected shape of img_webp: {img_webp.shape}")
3535

3636
if sys.platform == "linux":
37-
img_avif = decode_avif(str(SCRIPT_DIR / "assets/fakedata/logos/rgb_pytorch.avif"))
37+
img_avif = decode_avif(read_file(str(SCRIPT_DIR / "assets/fakedata/logos/rgb_pytorch.avif")))
3838
if img_avif.shape != (3, 100, 100):
3939
raise RuntimeError(f"Unexpected shape of img_avif: {img_avif.shape}")
4040

4141
img_heic = decode_heic(
42-
str(SCRIPT_DIR / "assets/fakedata/logos/rgb_pytorch_incorrectly_encoded_but_who_cares.heic")
42+
read_file(str(SCRIPT_DIR / "assets/fakedata/logos/rgb_pytorch_incorrectly_encoded_but_who_cares.heic"))
4343
)
4444
if img_heic.shape != (3, 100, 100):
4545
raise RuntimeError(f"Unexpected shape of img_heic: {img_heic.shape}")

0 commit comments

Comments
 (0)