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.
This commit is contained in:
sternenseemann 2021-12-22 10:49:30 +01:00
parent 132b8eb183
commit 8c9dc408ad

View file

@ -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