This is an automated email from the git hooks/post-receive script. tille pushed a commit to branch master in repository python-biom-format.
commit ab17589db65117b05b3af5587fa970ff228bfdf4 Author: Andreas Tille <[email protected]> Date: Mon Dec 19 22:27:40 2016 +0100 Add random seed to test that fails under some circumstances --- debian/changelog | 7 +++++++ debian/patches/random_seed_for_test.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 23 insertions(+) diff --git a/debian/changelog b/debian/changelog index 6c0f3a7..8ed806e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-biom-format (2.1.5+dfsg-6) UNRELEASED; urgency=medium + + * Add random seed to test that fails under some circumstances + Closes: #848410 + + -- Andreas Tille <[email protected]> Mon, 19 Dec 2016 22:25:56 +0100 + python-biom-format (2.1.5+dfsg-5) unstable; urgency=medium * Restrict set of architectures also for biom-format-tools to make sure diff --git a/debian/patches/random_seed_for_test.patch b/debian/patches/random_seed_for_test.patch new file mode 100644 index 0000000..0c1aa14 --- /dev/null +++ b/debian/patches/random_seed_for_test.patch @@ -0,0 +1,15 @@ +Description: Add random seed to test that fails under some circumstances +Bug-Debian: 848410 +Author: Andreas Tille <[email protected]> +Last-Update: Mon, 19 Dec 2016 22:25:56 +0100 + +--- a/tests/test_util.py ++++ b/tests/test_util.py +@@ -46,6 +46,7 @@ class UtilTests(TestCase): + self.biom_otu_table1_w_tax = parse_biom_table(biom_otu_table1_w_tax) + + def test_generate_subsamples(self): ++ np.random.seed(123) + table = Table(np.array([[3, 1, 1], [0, 3, 3]]), ['O1', 'O2'], + ['S1', 'S2', 'S3']) + actual_o1 = set() diff --git a/debian/patches/series b/debian/patches/series index 06593cf..13985b1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ ignore_local_dist-packages.patch no-web-adds.patch fix_future_import.patch enable_sloppy_sphinx_build.patch +random_seed_for_test.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-biom-format.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
