Commit 2a578fd7 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.coffea: skip tests crashing on aarch64-linux

parent 1876a43b
Loading
Loading
Loading
Loading
+37 −20
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -36,8 +37,8 @@
  # checks
  distributed,
  pyinstrument,
  pytestCheckHook,
  pytest-xdist,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -91,13 +92,14 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    distributed
    pyinstrument
    pytestCheckHook
    pytest-xdist
    pytestCheckHook
  ];

  pythonImportsCheck = [ "coffea" ];

  disabledTests = [
  disabledTests =
    [
      # Requires internet access
      # https://github.com/CoffeaTeam/coffea/issues/1094
      "test_lumimask"
@@ -114,6 +116,21 @@ buildPythonPackage rec {
      # ValueError: The array to mask was deleted before it could be masked.
      # If you want to construct this mask, you must either keep the array alive or use 'ak.mask' explicitly.
      "test_read_nanomc"
    ]
    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
      # Fatal Python error: Segmentation fault
      # coffea/nanoevents/transforms.py", line 287 in index_range
      "test_KaonParent_to_PionDaughters_Loop"
      "test_MCRecoAssociations"
      "test_MC_daughters"
      "test_MC_parents"
      "test_field_is_present"

      # Fatal Python error: Segmentation fault
      # File "/build/source/tests/test_lumi_tools.py", line 37 in test_lumidata
      "test_lumidata"
      # coffea/lumi_tools/lumi_tools.py", line 113 in get_lumi
      "test_lumilist"
    ];

  __darwinAllowLocalNetworking = true;