Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/hazmat/primitives/test_scrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import binascii
import os
import platform

import pytest

Expand All @@ -28,6 +29,13 @@ def _skip_if_memory_limited(memory_limit, params):
blen = int(params["p"]) * 128 * int(params["r"])
vlen = 32 * int(params["r"]) * (int(params["n"]) + 2) * 4
memory_required = blen + vlen
# This hack will be removed when we drop intel macOS support
if (
int(params["n"]) == 1048576
and platform.system() == "Darwin"
and platform.machine() == "x86_64"
):
pytest.skip("Test too slow for GH's x86_64 mac runners")
if memory_limit < memory_required:
pytest.skip(
"Test exceeds Scrypt memory limit. "
Expand Down
Loading