diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-06 21:57:25 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:21:55 +0100 |
| commit | 9b5ca72a37a41fe95153ce4ca8eff6e5e448e748 (patch) | |
| tree | 99c462d71d99c44c893b574db8233191e0f6e0c7 /gnu | |
| parent | 154302d75e6c71f6d859c2da89241c64929ed15f (diff) | |
gnu: python-lifelines: Simplify tests.
* gnu/packages/statistics.scm (python-lifelines):
[arguments] <test-flags>: Rework skipped tests to improve determinism of
them.
[native-inputs]: Remove python-pytest-xdist and python-wheel; add
python-jinja2.
Change-Id: Ia468acbfff3714662620e1196f4ea8fe72a308df
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/statistics.scm | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 0c64e9c64e1..b367e44ee4b 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -1386,31 +1386,19 @@ new data from those PDFs.") (build-system pyproject-build-system) (arguments (list + ;; tests: 144 passed, 75 skipped, 1 deselected, 11 warnings #:test-flags - ;; NOTE: Tests take 15-25min to complete on 16 threads and much longer - ;; in single one, so enabling --numprocesses option. - #~(list "lifelines/tests" - "--numprocesses" (number->string (min 16 (parallel-job-count))) - "-k" (string-join - (list - ;; This accuracy test fails because 0.012 is not < 0.01. - "not test_weibull_with_delayed_entries" - ;; These checks are too expensive, last for ages. - "test_univariate_fitters_ok_if_given_timedelta" - "test_predict_methods_returns_a_scalar_or_a_array_depending_on_input" - "test_cumulative_density_ci_is_ordered_correctly" - (string-append - "test_univariate_fitters_okay_if_" - "given_boolean_col_with_object_dtype")) - " and not ")))) + ;; Tests are not deterministic and compute intense. + #~(list "--ignore=lifelines/tests/test_estimation.py" + ;; Not equal to tolerance rtol=0.0001, atol=0 + "--deselect=lifelines/tests/test_npmle.py::test_mice_scipy"))) (native-inputs (list python-dill python-flaky + python-jinja2 python-joblib python-pytest - python-pytest-xdist ;see NOTE above - python-setuptools - python-wheel)) + python-setuptools)) (propagated-inputs (list python-autograd python-autograd-gamma |
