summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-25 11:43:41 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commitf80020bc50f106a8e20c4868f76228add97048a4 (patch)
tree417b74fce91271d56903dab3be9fa65e15627aac /lib
parentcba805536ebf9c16c6f6438b023cd476a8dfaa93 (diff)
[rubygems/rubygems] Read path binarily
I believe this should fix a flaky test on Windows. https://github.com/rubygems/rubygems/commit/a516b49a0a
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/test_utilities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb
index a41b2246ca..3bbe68ca0c 100644
--- a/lib/rubygems/test_utilities.rb
+++ b/lib/rubygems/test_utilities.rb
@@ -39,7 +39,7 @@ class Gem::FakeFetcher
end
def find_data(path, nargs = 3)
- return File.read path.path if URI === path and 'file' == path.scheme
+ return Gem.read_binary path.path if URI === path and 'file' == path.scheme
if URI === path and "URI::#{path.scheme.upcase}" != path.class.name
raise ArgumentError,