[Pkg-octave-commit] [octave-statistics] 03/05: d/p/expected-linkage-warning.patch: Add patch
Rafael Laboissière
rlaboiss-guest at moszumanska.debian.org
Sun Sep 13 09:38:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
rlaboiss-guest pushed a commit to branch master
in repository octave-statistics.
commit bae4c26085fabe2e0cedf7a848c2b51052b452d6
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date: Sun Sep 13 03:35:42 2015 -0300
d/p/expected-linkage-warning.patch: Add patch
---
debian/patches/expected-linkage-warning.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 22 insertions(+)
diff --git a/debian/patches/expected-linkage-warning.patch b/debian/patches/expected-linkage-warning.patch
new file mode 100644
index 0000000..a0c10d1
--- /dev/null
+++ b/debian/patches/expected-linkage-warning.patch
@@ -0,0 +1,21 @@
+Description: Fix expected warnings in unit tests for the linkage function
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Forwarded: https://savannah.gnu.org/bugs/?45671
+Last-Update: 2016-09-13
+
+--- octave-statistics-1.2.4.orig/inst/linkage.m
++++ octave-statistics-1.2.4/inst/linkage.m
+@@ -217,11 +217,11 @@ endfunction
+ %!assert (cond (linkage (pdist (x), "average")), 27.045012,t);
+ %!assert (cond (linkage (pdist (x), "weighted")), 27.412889,t);
+ %! lastwarn(); # Clear last warning before the test
+-%!warning <monotonically> linkage (pdist (x), "centroid");
++%!warning <clustering> linkage (pdist (x), "centroid");
+ %!test warning off clustering
+ %! assert (cond (linkage (pdist (x), "centroid")), 27.457477,t);
+ %! warning on clustering
+-%!warning <monotonically> linkage (pdist (x), "median");
++%!warning <clustering> linkage (pdist (x), "median");
+ %!test warning off clustering
+ %! assert (cond (linkage (pdist (x), "median")), 27.683325,t);
+ %! warning on clustering
diff --git a/debian/patches/series b/debian/patches/series
index 771682d..293f5c2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ expose-tbl-delim-tests.patch
use-corr-instead-of-cor.patch
small-k-in-gev-functions.patch
use-corr-instead-of-corrcoef.patch
+expected-linkage-warning.patch
--
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-statistics.git
More information about the Pkg-octave-commit
mailing list