python3Packages.looptime: disable failing time-based tests on darwin (#502823)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
@@ -34,6 +35,20 @@ buildPythonPackage (finalAttrs: {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# Time-based tests that fail pretty predictably on darwin but pass on linux
|
||||
"tests/test_chronometers.py::test_duration_resets_on_reuse"
|
||||
"tests/test_chronometers.py::test_conversion_to_float"
|
||||
"tests/test_chronometers.py::test_sync_context_manager"
|
||||
"tests/test_chronometers.py::test_async_context_manager"
|
||||
"tests/test_plugin.py::test_fixture_chronometer"
|
||||
"tests/test_time_moves.py::test_real_time_is_ignored"
|
||||
"tests/test_time_on_executors.py::test_with_sleep"
|
||||
"tests/test_time_on_io_idle.py::test_end_of_time"
|
||||
"tests/test_time_on_io_idle.py::test_no_idle_configured"
|
||||
"tests/test_time_on_io_idle.py::test_stepping_with_no_limit"
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/nolar/looptime/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Time dilation & contraction in asyncio event loops (in tests)";
|
||||
|
||||
Reference in New Issue
Block a user