From da0c36db08eebe43b69f8303deca8f3d544f2c60 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Jan 2025 17:11:08 +0100 Subject: [PATCH] python313Packages.vbuild: disable failing tests on Python 3.13 --- .../python-modules/vbuild/default.nix | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/vbuild/default.nix b/pkgs/development/python-modules/vbuild/default.nix index 12358ac9c3d6..4ed92013e018 100644 --- a/pkgs/development/python-modules/vbuild/default.nix +++ b/pkgs/development/python-modules/vbuild/default.nix @@ -5,6 +5,7 @@ poetry-core, pscript, pytestCheckHook, + pythonAtLeast, pythonOlder, }: @@ -38,10 +39,21 @@ buildPythonPackage rec { pythonImportsCheck = [ "vbuild" ]; - disabledTests = [ - # Tests require network access - "test_min" - "test_pycomp_onlineClosurable" + disabledTests = + [ + # Tests require network access + "test_min" + "test_pycomp_onlineClosurable" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + "test_ok" + ]; + + disabledTestPaths = lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/manatlan/vbuild/issues/13 + "tests/test_py2js.py" + "tests/test_PyStdLibIncludeOrNot.py" + "test_py_comp.py" ]; meta = {