Skip to content

Commit 8ff1604

Browse files
committed
Update test libraries from ruby/ruby 2023-04-29
From ruby/ruby@d239643
1 parent 82cff0b commit 8ff1604

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/lib/core_assertions.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,7 @@ def assert_all_assertions_foreach(msg = nil, *keys, &block)
743743
CLOCK_MONOTONIC
744744
].find do |clk|
745745
if Process.const_defined?(clk)
746-
clk = clk.to_sym
747-
begin
746+
[clk.to_sym, Process.const_get(clk)].find do |clk|
748747
Process.clock_gettime(clk)
749748
rescue
750749
# Constants may be defined but not implemented, e.g., mingw.

0 commit comments

Comments
 (0)