haskellPackages.Unique: disable ordering-dependent test

Data.List.UniqueUnsorted's test suite has some tests that check the
precise ordering of the return value, but the module does not make
any guarantees about ordering of return values as far as I can tell, so
these tests should be safe to ignore.
main
sternenseemann 3 years ago
parent 132b8eb183
commit 8c9dc408ad
  1. 8
      pkgs/development/haskell-modules/configuration-common.nix

@ -2156,5 +2156,13 @@ self: super: {
swagger2 = assert super.swagger2.version == "2.6"; overrideCabal (drv: {
testTarget = "spec";
}) super.swagger2;
# https://github.com/kapralVV/Unique/issues/9
Unique = assert super.Unique.version == "0.4.7.9"; overrideCabal (drv: {
testFlags = [
"--skip" "/Data.List.UniqueUnsorted.removeDuplicates/removeDuplicates: simple test/"
"--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/unique: simple test/"
"--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/repeatedBy: simple test/"
] ++ drv.testFlags or [];
}) super.Unique;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super

Loading…
Cancel
Save