ruby-changes:66776
From: Yusuke <ko1@a...>
Date: Tue, 13 Jul 2021 20:30:38 +0900 (JST)
Subject: [ruby-changes:66776] a5d6ea9266 (master): [ruby/error_highlight] Set the binary mode for Tempfile creation in a test
https://git.ruby-lang.org/ruby.git/commit/?id=a5d6ea9266 From a5d6ea9266abbdcf87b09dacebc2123fa82a4291 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 13 Jul 2021 20:29:30 +0900 Subject: [ruby/error_highlight] Set the binary mode for Tempfile creation in a test https://github.com/ruby/error_highlight/commit/8273d3b6f2 --- test/error_highlight/test_error_highlight.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/error_highlight/test_error_highlight.rb b/test/error_highlight/test_error_highlight.rb index 03909bd..dcc8ce4 100644 --- a/test/error_highlight/test_error_highlight.rb +++ b/test/error_highlight/test_error_highlight.rb @@ -1002,7 +1002,7 @@ undefined method `time' for 1:Integer https://github.com/ruby/ruby/blob/trunk/test/error_highlight/test_error_highlight.rb#L1002 end def test_hard_tabs - tmp = Tempfile.new(["error_highlight_test", ".rb"]) + tmp = Tempfile.new(["error_highlight_test", ".rb"], binmode: true) tmp << "\t \t1.time {}\n" tmp.close(false) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/