[med-svn] [python-biom-format] 01/01: Add another random seed to past tests relieably on all architectures

Andreas Tille tille at debian.org
Thu Jan 12 08:09:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to tag debian/2.1.5+dfsg-7
in repository python-biom-format.

commit a987682312ae9c0c91d1950a2dc5963030b28900
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jan 12 09:08:54 2017 +0100

    Add another random seed to past tests relieably on all architectures
---
 debian/changelog                          |  5 +++--
 debian/patches/random_seed_for_test.patch | 10 ++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 697332a..a651b6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
-python-biom-format (2.1.5+dfsg-7) UNRELEASED; urgency=medium
+python-biom-format (2.1.5+dfsg-7) unstable; urgency=medium
 
   * d/copyright: Update Upstream-Contact
+  * Add another random seed to past tests relieably on all architectures
 
- -- Andreas Tille <tille at debian.org>  Tue, 20 Dec 2016 08:28:00 +0100
+ -- Andreas Tille <tille at debian.org>  Thu, 12 Jan 2017 09:04:23 +0100
 
 python-biom-format (2.1.5+dfsg-6) unstable; urgency=medium
 
diff --git a/debian/patches/random_seed_for_test.patch b/debian/patches/random_seed_for_test.patch
index 0c1aa14..c8ab08b 100644
--- a/debian/patches/random_seed_for_test.patch
+++ b/debian/patches/random_seed_for_test.patch
@@ -13,3 +13,13 @@ Last-Update: Mon, 19 Dec 2016 22:25:56 +0100
          table = Table(np.array([[3, 1, 1], [0, 3, 3]]), ['O1', 'O2'],
                        ['S1', 'S2', 'S3'])
          actual_o1 = set()
+--- a/tests/test_table.py
++++ b/tests/test_table.py
+@@ -1440,6 +1440,7 @@ class SparseTableTests(TestCase):
+ 
+     def test_sum(self):
+         """Test of sum!"""
++        np.random.seed(123)
+         self.assertEqual(self.st1.sum('whole'), 26)
+         npt.assert_equal(self.st1.sum('sample'), np.array([12, 14]))
+         npt.assert_equal(self.st1.sum('observation'), np.array([11, 15]))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-biom-format.git



More information about the debian-med-commit mailing list