summaryrefslogtreecommitdiff
path: root/test/csv/test_encodings.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-05-13 08:27:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-20 02:32:50 +0900
commit0ee5578e8caa8562cc48234684aaab086a3e13e9 (patch)
tree60ababb0dee5ec9a8c1418cb62476d716cb993d5 /test/csv/test_encodings.rb
parent6ba1abd40c4610506a638246431660a32a9b1798 (diff)
[ruby/csv] test: use binary mode explicitly for Ruby 2.7
https://github.com/ruby/csv/commit/736174d284
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3332
Diffstat (limited to 'test/csv/test_encodings.rb')
-rw-r--r--test/csv/test_encodings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb
index cd63af6a83..ea686cb27b 100644
--- a/test/csv/test_encodings.rb
+++ b/test/csv/test_encodings.rb
@@ -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