Skip to content

Commit

Permalink
qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 26, 2024
1 parent 3a9a3ab commit 03785af
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ def skip_unless_avif_encoder(codec_name: str) -> pytest.MarkDecorator:
)


def is_docker_qemu() -> bool:
try:
init_proc_exe = os.readlink("/proc/1/exe")
except (FileNotFoundError, PermissionError):
return False
else:
return "qemu" in init_proc_exe


def has_alpha_premultiplied(im_bytes: bytes) -> bool:
stream = BytesIO(im_bytes)
length = len(im_bytes)
Expand Down Expand Up @@ -782,9 +773,6 @@ class TestAvifLeaks(PillowLeakTestCase):
mem_limit = MAX_THREADS * 3 * 1024
iterations = 100

@pytest.mark.skipif(
is_docker_qemu(), reason="Skipping on cross-architecture containers"
)
def test_leak_load(self) -> None:
with open(TEST_AVIF_FILE, "rb") as f:
im_data = f.read()
Expand Down

0 comments on commit 03785af

Please sign in to comment.