From 222222fd76fddfd90ed8fdb35552a77f589b8304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 23 May 2023 22:10:44 +0200 Subject: [PATCH] python310Packages.fastnumbers: disable hypothesis too slow healthcheck through upstream defined profiles log lines I have: last 10 log lines: > tests/test_fastnumbers.py:1330: in test_given_unicode_digit_returns_true > @parametrize("func", get_funcs(funcs), ids=funcs) > E hypothesis.errors.FailedHealthCheck: Data generation is extremely slow: Only produced 9 valid examples in 1.26 seconds (0 invalid ones and 0 exceeded maximum size). Try decreasing size of the data you're generating (with e.g. max_size or max_leaves parameters). > E See https://hypothesis.readthedocs.io/en/latest/healthchecks.html for more information about this. If you want to disable just this health check, add HealthCheck.too_slow to the suppress_health_check settings for this test. > ---------------------------------- Hypothesis ---------------------------------- > You can add @seed(21402865096374572269346745328342401108) to this test or run pytest with --hypothesis-seed=21402865096374572269346745328342401108 to reproduce this failure. > =========================== short test summary info ============================ > FAILED tests/test_fastnumbers.py::TestCheckingFunctions::test_given_unicode_digit_returns_true[check_int] - hypothesis.errors.FailedHealthCheck: Data generation is extremely slow: Onl... > ============ 1 failed, 1838 passed, 1 skipped in 383.89s (0:06:23) ============= > /nix/store/37p8gq9zijbw6pj3lpi1ckqiv18j2g62-stdenv-linux/setup: line 1594: pop_var_context: head of shell_variables not a function context For full logs, run 'nix log /nix/store/avsxawhbbrfmp0128i5qfsqkzxka343z-python3.10-fastnumbers-5.0.1.drv'. --- pkgs/development/python-modules/fastnumbers/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/fastnumbers/default.nix b/pkgs/development/python-modules/fastnumbers/default.nix index e3a91b366d3f..7be3e25698ba 100644 --- a/pkgs/development/python-modules/fastnumbers/default.nix +++ b/pkgs/development/python-modules/fastnumbers/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , buildPythonPackage -, fastnumbers , fetchFromGitHub , hypothesis , numpy @@ -43,6 +42,10 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = [ + "--hypothesis-profile=standard" + ]; + pythonImportsCheck = [ "fastnumbers" ];