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:
parent
6ba1abd40c
commit
0ee5578e8c
Notes:
git
2020-07-20 03:35:45 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue