Skip to content

Commit

Permalink
[TESTS] Makes _run_sysctl_mem deterministic by fixing system page size
Browse files Browse the repository at this point in the history
This patch is now required as macOS runners switched to ARM (see
actions/setup-python#855).
  • Loading branch information
HorlogeSkynet committed May 8, 2024
1 parent 1287f18 commit efa195c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion archey/test/entries/test_archey_ram.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def test_run_sysctl_and_vmstat(self, _):
"""
],
)
def test_run_sysctl_mem(self, _):
@patch(
"archey.entries.ram.os.sysconf",
return_value=4096,
)
def test_run_sysctl_mem(self, _, __):
"""Test _run_sysctl_mem()"""
self.assertTupleEqual(
RAM._run_sysctl_mem(), # pylint: disable=protected-access
Expand Down

0 comments on commit efa195c

Please sign in to comment.