From f80020bc50f106a8e20c4868f76228add97048a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 25 Jun 2020 11:43:41 +0200 Subject: [PATCH] [rubygems/rubygems] Read path binarily I believe this should fix a flaky test on Windows. https://github.com/rubygems/rubygems/commit/a516b49a0a --- lib/rubygems/test_utilities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,