python314Packages.gilknocker: disable benchmarks (segfault) and flaky test on Darwin

This commit is contained in:
Sarah Clark
2026-01-13 14:57:04 -08:00
parent 41734ea80a
commit e10634f89b
@@ -1,7 +1,9 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
pkg-config,
@@ -54,6 +56,24 @@ buildPythonPackage rec {
pytest-rerunfailures
];
enabledTestPaths = [
# skip the benchmarks as they can segfault
# https://github.com/milesgranger/gilknocker/issues/35
"tests"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
# segfaults
# https://github.com/milesgranger/gilknocker/issues/35
"benchmarks"
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# depends on an empirically-derived threshold that fails on fast and slow machines.
# https://github.com/milesgranger/gilknocker/issues/36
"test_knockknock_some_gil"
];
pytestFlags = [ "--benchmark-disable" ];
meta = {