Skip to content

Commit

Permalink
Also check that we are running on arm64 macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed May 15, 2024
1 parent 9d9f48f commit 43b468d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#

import os
import platform
from pathlib import Path

import pytest
Expand Down Expand Up @@ -1691,7 +1692,7 @@ def test_extract_rar_with_invalid_path(self):
def test_extract_rar_with_trailing_data(self):
test_file = self.get_test_loc('archive/rar/rar_trailing.rar')
test_dir = self.get_temp_dir()
if on_mac:
if on_mac and platform.machine() == 'arm64':
archive.extract_rar(test_file, test_dir)
else:
expected = Exception('Unknown error')
Expand Down

0 comments on commit 43b468d

Please sign in to comment.