python312Packages.intake: remove failing tests (conditionally)

This commit is contained in:
Doron Behar
2024-10-27 10:59:42 +02:00
parent edbe0026d3
commit a7bc20eede
@@ -19,6 +19,7 @@
pytestCheckHook,
python-snappy,
pythonOlder,
pythonAtLeast,
pyyaml,
networkx,
requests,
@@ -126,12 +127,18 @@ buildPythonPackage rec {
# Timing-based, flaky on darwin and possibly others
"test_idle_timer"
]
++ lib.optionals
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
[
# Flaky with older low-res mtime on darwin < 10.13 (#143987)
"test_second_load_timestamp"
];
++ lib.optionals (pythonAtLeast "3.12") [
# Require deprecated distutils
"test_which"
"test_load"
]
++
lib.optionals
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13")
[
# Flaky with older low-res mtime on darwin < 10.13 (#143987)
"test_second_load_timestamp"
];
pythonImportsCheck = [ "intake" ];