diff --git a/tests/commands/test_startup_time.py b/tests/commands/test_startup_time.py index 62baab20a..32b4f80fd 100644 --- a/tests/commands/test_startup_time.py +++ b/tests/commands/test_startup_time.py @@ -4,7 +4,7 @@ import time from tests.conftest import is_arm, is_mac -MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm() else 0.5 +MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm(True) else 0.5 def test_startup_time(): diff --git a/tests/conftest.py b/tests/conftest.py index a390dea07..ca9239375 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -500,9 +500,11 @@ def patch_gc(mocker) -> None: mocker.patch("freqtrade.main.gc_set_threshold") -def is_arm() -> bool: +def is_arm(include_aarch64: bool = False) -> bool: machine = platform.machine() - return "arm" in machine or "aarch64" in machine + if include_aarch64: + return "aarch64" in machine or "arm" in machine + return "arm" in machine def is_mac() -> bool: