From a4df7cb33804add1d894ead66480365ea7f45fa1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 29 Jul 2021 16:26:15 +0900 Subject: [PATCH] Partly picking https://github.com/ruby/error_highlight/commit/25ef7dbeda4f2cfcad1675f70319401ef4916f40#diff-1ce41a048bf2c08aa7bf25b741e9d3a4e08ea03f0d80bc6b8ee6d1c3c259704dR1022 --- 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 27a34ed2f4..49bfee8f6c 100644 --- a/test/error_highlight/test_error_highlight.rb +++ b/test/error_highlight/test_error_highlight.rb @@ -1019,7 +1019,7 @@ _ _ ^^^^^ end def test_no_final_newline - Tempfile.create(["error_highlight_test", ".rb"]) do |tmp| + Tempfile.create(["error_highlight_test", ".rb"], binmode: true) do |tmp| tmp << "1.time {}" tmp.close