ruby-changes:74332
From: Takashi <ko1@a...>
Date: Fri, 4 Nov 2022 02:35:26 +0900 (JST)
Subject: [ruby-changes:74332] 611b5e7f40 (master): [ruby/irb] Fix build_context for ruby/ruby CI
https://git.ruby-lang.org/ruby.git/commit/?id=611b5e7f40 From 611b5e7f40dd7f0ee00df7981dc60890eeb2f315 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Thu, 3 Nov 2022 10:34:46 -0700 Subject: [ruby/irb] Fix build_context for ruby/ruby CI Co-Authored-By: Stan Lo <stan.lo@s...> https://github.com/ruby/irb/commit/d1fe234a9a --- test/irb/test_ruby_lex.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb index 3d6455a710..dcc998a24e 100644 --- a/test/irb/test_ruby_lex.rb +++ b/test/irb/test_ruby_lex.rb @@ -702,7 +702,8 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_ruby_lex.rb#L702 private def build_context(local_variables = nil) - workspace = IRB::WorkSpace.new + IRB.init_config(nil) + workspace = IRB::WorkSpace.new(TOPLEVEL_BINDING.dup) if local_variables local_variables.each do |n| -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/