Skip to content

Commit 43b468d

Browse files
committed
Also check that we are running on arm64 macOS
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 9d9f48f commit 43b468d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_archive.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#
1010

1111
import os
12+
import platform
1213
from pathlib import Path
1314

1415
import pytest
@@ -1691,7 +1692,7 @@ def test_extract_rar_with_invalid_path(self):
16911692
def test_extract_rar_with_trailing_data(self):
16921693
test_file = self.get_test_loc('archive/rar/rar_trailing.rar')
16931694
test_dir = self.get_temp_dir()
1694-
if on_mac:
1695+
if on_mac and platform.machine() == 'arm64':
16951696
archive.extract_rar(test_file, test_dir)
16961697
else:
16971698
expected = Exception('Unknown error')

0 commit comments

Comments
 (0)