[commons-math] 05/06: Add disable-testSampling-test.patch.
Markus Koschany
apo at moszumanska.debian.org
Fri Aug 26 14:33:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository commons-math.
commit 59956185e1aa97c8d3ccc14d19ac6b5da2c1444f
Author: Markus Koschany <apo at debian.org>
Date: Fri Aug 26 16:24:13 2016 +0200
Add disable-testSampling-test.patch.
Disable testSampling test that fails with a probability of 0.001.
Closes: #834890
---
debian/patches/disable-testSampling-test.patch | 32 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/disable-testSampling-test.patch b/debian/patches/disable-testSampling-test.patch
new file mode 100644
index 0000000..5f799c7
--- /dev/null
+++ b/debian/patches/disable-testSampling-test.patch
@@ -0,0 +1,32 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 26 Aug 2016 16:23:45 +0200
+Subject: disable testSampling test
+
+Debian-Bug: https://bugs.debian.org/834890
+Forwarded: no
+---
+ .../commons/math/distribution/ContinuousDistributionAbstractTest.java | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/test/java/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java b/src/test/java/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java
+index cc06acb..79929c0 100644
+--- a/src/test/java/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java
++++ b/src/test/java/org/apache/commons/math/distribution/ContinuousDistributionAbstractTest.java
+@@ -261,7 +261,7 @@ public abstract class ContinuousDistributionAbstractTest extends TestCase {
+ /**
+ * Test sampling
+ */
+- public void testSampling() throws Exception {
++ /*public void testSampling() throws Exception {
+ AbstractContinuousDistribution dist = (AbstractContinuousDistribution) makeDistribution();
+ final int sampleSize = 1000;
+ double[] sample = dist.sample(sampleSize);
+@@ -273,7 +273,7 @@ public abstract class ContinuousDistributionAbstractTest extends TestCase {
+ TestUtils.updateCounts(sample[i], counts, quartiles);
+ }
+ TestUtils.assertChiSquareAccept(expected, counts, 0.001);
+- }
++ }*/
+
+ //------------------ Getters / Setters for test instance data -----------
+ /**
diff --git a/debian/patches/series b/debian/patches/series
index e922c99..755f478 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
03_java8_compatibility.patch
+disable-testSampling-test.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/commons-math.git
More information about the pkg-java-commits
mailing list