mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
support multi-run for test/ruby/test_eval.rb
need to remove a Constant.
This commit is contained in:
parent
5f7be6243a
commit
962c7abb13
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue