1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/csv] test: use binary mode explicitly for Ruby 2.7

https://github.com/ruby/csv/commit/736174d284
This commit is contained in:
Sutou Kouhei 2020-05-13 08:27:05 +09:00 committed by Nobuyoshi Nakada
parent 6ba1abd40c
commit 0ee5578e8c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-07-20 03:35:45 +09:00

View file

@ -83,7 +83,7 @@ class TestCSVEncodings < Test::Unit::TestCase
no_warnings do
Encoding.default_external = encoding
end
result = CSV.read(@temp_csv_path)[0][0]
result = CSV.read(@temp_csv_path, "rb")[0][0]
ensure
no_warnings do
Encoding.default_external = default_external