зеркало из https://github.com/github/ruby.git
Fix test failure for parallel testing
This commit is contained in:
Родитель
b875a85c53
Коммит
6656309fe2
|
@ -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
|
||||
|
|
|
@ -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+.
|
||||
|
|
Загрузка…
Ссылка в новой задаче