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