[DRE-commits] [ruby-bio] 03/11: omit chi2 tests instead of commenting them out

Cédric Boutillier boutil at alioth.debian.org
Tue Aug 6 22:19:01 UTC 2013


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

boutil pushed a commit to branch master
in repository ruby-bio.

commit aca420b9a3600aa2bb025a6bc0b43feeb8a30c6d
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Aug 6 22:40:49 2013 +0200

    omit chi2 tests instead of commenting them out
---
 debian/patches/disable_tests_using_chi2.patch |   30 +++++++++----------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/debian/patches/disable_tests_using_chi2.patch b/debian/patches/disable_tests_using_chi2.patch
index 6cba4a4..547e59d 100644
--- a/debian/patches/disable_tests_using_chi2.patch
+++ b/debian/patches/disable_tests_using_chi2.patch
@@ -4,32 +4,24 @@ Description: deactivate tests in test/unit/bio/sequence using chi2
 Author: Cédric Boutillier <cedric.boutillier at gmail.com>
 Origin: vendor
 Bug: https://github.com/bioruby/bioruby/issues/56
-Last-Update: 2012-06-03
+Last-Update: 2013-08-06
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/test/unit/bio/sequence/test_common.rb
 +++ b/test/unit/bio/sequence/test_common.rb
-@@ -287,14 +287,16 @@
+@@ -319,11 +319,15 @@
      end
      private :randomize_equiprobability
  
--    def test_randomize_equiprobability
--      randomize_equiprobability { |seq| seq.randomize }
--    end
 +    ## Debian patch: test deactivated because randomly failing
-+    #def test_randomize_equiprobability
-+    #  randomize_equiprobability { |seq| seq.randomize }
-+    #end
+     def test_randomize_equiprobability
++      omit "test randomly failing skipped"
+       randomize_equiprobability { |seq| seq.randomize }
+     end
  
--    def test_randomize_with_hash_equiprobability
--      hash = { 'c' => 4, 'g' => 3, 't' => 2, 'a' => 1 }
--      randomize_equiprobability { |seq| seq.randomize(hash) }
--    end
 +    ## Debian patch: test deactivated because randomly failing
-+    #def test_randomize_with_hash_equiprobability
-+    #  hash = { 'c' => 4, 'g' => 3, 't' => 2, 'a' => 1 }
-+    #  randomize_equiprobability { |seq| seq.randomize(hash) }
-+    #end
- 
-     ## disabled because it takes too long time.
-     #def test_randomize_with_block_equiprobability
+     def test_randomize_with_hash_equiprobability
++      omit "test randomly failing skipped"
+       hash = { 'c' => 4, 'g' => 3, 't' => 2, 'a' => 1 }
+       randomize_equiprobability { |seq| seq.randomize(hash) }
+     end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-bio.git



More information about the Pkg-ruby-extras-commits mailing list