[rubygems/rubygems] Ruby 2.6 compat
https://github.com/rubygems/rubygems/commit/1a84960af3
This commit is contained in:
parent
cadca9f67e
commit
f4a5fac0d2
@ -84,10 +84,12 @@ class TestGemSafeMarshal < Gem::TestCase
|
|||||||
Time.at(secs, 1.00001, :nanosecond),
|
Time.at(secs, 1.00001, :nanosecond),
|
||||||
Time.at(secs, 1.00001, :nanosecond),
|
Time.at(secs, 1.00001, :nanosecond),
|
||||||
].tap do |times|
|
].tap do |times|
|
||||||
|
unless RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "23" || RUBY_VERSION < "2.7"
|
||||||
times.concat [
|
times.concat [
|
||||||
Time.at(secs, in: "UTC"),
|
Time.at(secs, in: "UTC"),
|
||||||
Time.at(secs, in: "Z"),
|
Time.at(secs, in: "Z"),
|
||||||
] unless RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "23"
|
]
|
||||||
|
end
|
||||||
end.each_with_index do |t, i|
|
end.each_with_index do |t, i|
|
||||||
define_method("test_time_#{i} #{t.inspect}") do
|
define_method("test_time_#{i} #{t.inspect}") do
|
||||||
pend "Marshal.load of Time with custom zone is broken before Truffleruby 23" if t.zone.nil? && RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "23"
|
pend "Marshal.load of Time with custom zone is broken before Truffleruby 23" if t.zone.nil? && RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "23"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user