Skip to content

Commit 736174d

Browse files
committed
test: use binary mode explicitly for Ruby 2.7
1 parent 886dbab commit 736174d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/csv/test_encodings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_read_with_default_encoding
8383
no_warnings do
8484
Encoding.default_external = encoding
8585
end
86-
result = CSV.read(@temp_csv_path)[0][0]
86+
result = CSV.read(@temp_csv_path, "rb")[0][0]
8787
ensure
8888
no_warnings do
8989
Encoding.default_external = default_external

0 commit comments

Comments
 (0)