public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-biology/bioruby/files: bioruby-1.4.3.0001-fix-tests.patch
@ 2013-11-25  1:13 Manuel Rueger (mrueg)
  0 siblings, 0 replies; only message in thread
From: Manuel Rueger (mrueg) @ 2013-11-25  1:13 UTC (permalink / raw
  To: gentoo-commits

mrueg       13/11/25 01:13:15

  Added:                bioruby-1.4.3.0001-fix-tests.patch
  Log:
  NMU: Add missing dependency on libxml and ruby20 support. Fix tests see bug #489712
  
  (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )

Revision  Changes    Path
1.1                  sci-biology/bioruby/files/bioruby-1.4.3.0001-fix-tests.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/bioruby/files/bioruby-1.4.3.0001-fix-tests.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/bioruby/files/bioruby-1.4.3.0001-fix-tests.patch?rev=1.1&content-type=text/plain

Index: bioruby-1.4.3.0001-fix-tests.patch
===================================================================
From edda65b8fb32c2eee6b0652074981c31aa68b0eb Mon Sep 17 00:00:00 2001
From: Naohisa Goto <ng@bioruby.org>
Date: Fri, 23 Aug 2013 23:51:59 +0900
Subject: [PATCH] Test bug fix: Read test file with binary mode to avoid
 encoding error

 * Test bug fix: Read test file with binary mode to avoid string encoding
   error. Thanks to nieder (github.com/nieder) who reports the bug.
   (https://github.com/bioruby/bioruby/issues/84)
---
 test/unit/bio/db/test_phyloxml.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/bio/db/test_phyloxml.rb b/test/unit/bio/db/test_phyloxml.rb
index 0744c64..c24278d 100644
--- a/test/unit/bio/db/test_phyloxml.rb
+++ b/test/unit/bio/db/test_phyloxml.rb
@@ -100,7 +100,7 @@ def test_open_with_block
     end
 
     def test_new
-      str = File.read(TestPhyloXMLData.example_xml)
+      str = File.open(TestPhyloXMLData.example_xml, "rb") { |f| f.read }
       assert_instance_of(Bio::PhyloXML::Parser,
                          phyloxml = Bio::PhyloXML::Parser.new(str))
       common_test_next_tree(phyloxml)
-- 
1.8.4






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-25  1:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25  1:13 [gentoo-commits] gentoo-x86 commit in sci-biology/bioruby/files: bioruby-1.4.3.0001-fix-tests.patch Manuel Rueger (mrueg)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox