ruby-changes:59829
From: Koichi <ko1@a...>
Date: Tue, 28 Jan 2020 15:24:31 +0900 (JST)
Subject: [ruby-changes:59829] 962c7abb13 (master): support multi-run for test/ruby/test_eval.rb
https://git.ruby-lang.org/ruby.git/commit/?id=962c7abb13 From 962c7abb1373ee1ff7d5ce443b2872deac452b9d Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 28 Jan 2020 13:39:50 +0900 Subject: support multi-run for test/ruby/test_eval.rb need to remove a Constant. diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index b1cb562..bf551c6 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -347,6 +347,10 @@ class TestEval < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_eval.rb#L347 assert_equal(55, eval("foo22")) assert_equal(55, foo22) }.call + + self.class.class_eval do + remove_const :EvTest + end end def test_nil_instance_eval_cvar -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/