From 5dbfbc05e052e9d0d3e6e5bbbc12d6b48ab779b1 Mon Sep 17 00:00:00 2001 From: Mitchell Pleune Date: Fri, 7 Feb 2025 20:50:25 -0500 Subject: [PATCH] python3Packages.twisted: disable test_cpuCount test (#380245) This test checks for the number of availaible CPU cores using two different methods, and asserts that they are equal. In situations such as LXC containers that do not have all cores availaible, one method can still return the real total CPU core count, and the other will return the number enabled. This causes a needless build fail in LXC. --- pkgs/development/python-modules/twisted/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index e461ba2df163..199944707eb4 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -109,6 +109,10 @@ buildPythonPackage rec { "MulticastTests.test_multicast" "MulticastTests.test_multiListen" ]; + "src/twisted/trial/test/test_script.py" = [ + # Fails in LXC containers with less than all cores availaible (limits.cpu) + "AutoJobsTests.test_cpuCount" + ]; "src/twisted/internet/test/test_unix.py" = [ # flaky? "UNIXTestsBuilder.test_sendFileDescriptorTriggersPauseProducing"