Skip to content

Commit 763f08a

Browse files
committed
test: test catboost on aarch64 runners
1 parent 886d5d1 commit 763f08a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/commands/test_startup_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from tests.conftest import is_arm, is_mac
55

66

7-
MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm() else 0.5
7+
MAXIMUM_STARTUP_TIME = 0.7 if is_mac() and not is_arm(True) else 0.5
88

99

1010
def test_startup_time():

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,11 @@ def patch_gc(mocker) -> None:
500500
mocker.patch("freqtrade.main.gc_set_threshold")
501501

502502

503-
def is_arm() -> bool:
503+
def is_arm(include_aarch64: bool = False) -> bool:
504504
machine = platform.machine()
505-
return "arm" in machine or "aarch64" in machine
505+
if include_aarch64:
506+
return "aarch64" in machine or "arm" in machine
507+
return "arm" in machine
506508

507509

508510
def is_mac() -> bool:

0 commit comments

Comments
 (0)