diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-01-28 13:39:50 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-01-28 15:23:51 +0900 |
commit | 962c7abb1373ee1ff7d5ce443b2872deac452b9d (patch) | |
tree | 6fbecc9c9eea2b4a16dea021aa31e893aa09909b | |
parent | 5f7be6243a5b0cdbf1abc8967a512e48c2f1489e (diff) | |
download | ruby-962c7abb1373ee1ff7d5ce443b2872deac452b9d.tar.gz |
support multi-run for test/ruby/test_eval.rb
need to remove a Constant.
-rw-r--r-- | test/ruby/test_eval.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index b1cb562175..bf551c6845 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -347,6 +347,10 @@ class TestEval < Test::Unit::TestCase 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 |