Unverified Commit 2049461e authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

python3Packages.protobuf4: disable tests that fail on 32bit (#354992)

parents 3f42f0b6 822590d0
Loading
Loading
Loading
Loading
+16 −9
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchpatch,
  isPyPy,
  lib,
  stdenv,
  numpy,
  protobuf,
  pytestCheckHook,
@@ -84,7 +85,8 @@ buildPythonPackage {
    pytestCheckHook
  ] ++ lib.optionals (lib.versionAtLeast protobuf.version "22") [ numpy ];

  disabledTests = lib.optionals isPyPy [
  disabledTests =
    lib.optionals isPyPy [
      # error message differs
      "testInvalidTimestamp"
      # requires tracemalloc which pypy does not implement
@@ -92,6 +94,11 @@ buildPythonPackage {
      "testUnknownFieldsNoMemoryLeak"
      # assertion is not raised for some reason
      "testStrictUtf8Check"
    ]
    ++ lib.optionals stdenv.hostPlatform.is32bit [
      # OverflowError: timestamp out of range for platform time_t
      "testTimezoneAwareDatetimeConversionWhereTimestampLosesPrecision"
      "testTimezoneNaiveDatetimeConversionWhereTimestampLosesPrecision"
    ];

  disabledTestPaths =