Unverified Commit a783650e authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

python3Packages.looptime: disable failing time-based tests on darwin (#502823)

parents f6248781 03542a04
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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)";