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

Fix test failure for parallel testing

This commit is contained in:
Hiroshi SHIBATA 2021-07-27 17:34:13 +09:00
parent b875a85c53
commit 6656309fe2
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 4 additions and 6 deletions

View file

@ -101,9 +101,3 @@ require_relative 'uri/ldap'
require_relative 'uri/ldaps'
require_relative 'uri/mailto'
require_relative 'uri/ws'
module URI
INITIAL_SCHEMES = scheme_list
private_constant :INITIAL_SCHEMES
Ractor.make_shareable(INITIAL_SCHEMES) if defined?(Ractor)
end

View file

@ -79,6 +79,10 @@ module URI
}.to_h
end
INITIAL_SCHEMES = scheme_list
private_constant :INITIAL_SCHEMES
Ractor.make_shareable(INITIAL_SCHEMES) if defined?(Ractor)
#
# Construct a URI instance, using the scheme to detect the appropriate class
# from +URI.scheme_list+.