Skip to content

Commit

Permalink
Fix arm check
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Jan 30, 2024
1 parent 747ebad commit 888f378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/viztracer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _check_attach_availability(self) -> Tuple[bool, Optional[str]]:
if sys.platform == "win32":
return False, "VizTracer does not support this feature on Windows"

if sys.platform == "darwin" and platform.processor() == "arm":
if sys.platform == "darwin" and "arm" in platform.processor():
return False, "VizTracer does not support this feature on Apple Silicon"

if sys.platform == "darwin" and sys.version_info >= (3, 11):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class TestRemoteFail(CmdlineTmpl):
@unittest.skipUnless(sys.platform == "win32"
or (sys.platform == "darwin" and "arm" in platform.processor()),
"Only test unavailable platform")
def test_windows(self):
def test_unsupported(self):
tracer = VizTracer(output_file="remote.json")
with self.assertRaises(SystemExit):
tracer.install()
Expand Down

0 comments on commit 888f378

Please sign in to comment.