From 41b458bf839b2311617d78c86ff7f40b94e20d18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 02:08:21 +0100 Subject: [PATCH] python313Packages.ipdb: disable failing tests --- pkgs/development/python-modules/ipdb/default.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ipdb/default.nix b/pkgs/development/python-modules/ipdb/default.nix index 84123590fe1b..9d140f2bebfa 100644 --- a/pkgs/development/python-modules/ipdb/default.nix +++ b/pkgs/development/python-modules/ipdb/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + pythonAtLeast, pythonOlder, decorator, ipython, @@ -9,7 +10,8 @@ exceptiongroup, tomli, setuptools, - unittestCheckHook, + pytestCheckHook, + pytest-timeout, }: buildPythonPackage rec { @@ -36,12 +38,22 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) ''; + disabledTestPaths = + [ + # OSError: pytest: reading from stdin while output is captured! Consider using `-s`. + "manual_test.py" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # tests get stuck + "tests/test_opts.py" + ]; + meta = with lib; { homepage = "https://github.com/gotcha/ipdb"; description = "IPython-enabled pdb";