Skip to content

Commit 8273d3b

Browse files
committed
Set the binary mode for Tempfile creation in a test
1 parent 9d67128 commit 8273d3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_error_highlight.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def custom_formatter.message_for(spot)
10021002
end
10031003

10041004
def test_hard_tabs
1005-
tmp = Tempfile.new(["error_highlight_test", ".rb"])
1005+
tmp = Tempfile.new(["error_highlight_test", ".rb"], binmode: true)
10061006
tmp << "\t \t1.time {}\n"
10071007
tmp.close(false)
10081008

0 commit comments

Comments
 (0)