From 047bcbd51926580dbf6678bc69cddf7cfb4ed981 Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 25 Dec 2008 10:24:17 +0000 Subject: Revert "trunk r28202 : [ruby-dev:37240]" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_eval.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index 2f4b0bfbbd..23d34a5f81 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -1,5 +1,4 @@ require 'test/unit' -require_relative 'envutil' class TestEval < Test::Unit::TestCase @@ -8,15 +7,6 @@ class TestEval < Test::Unit::TestCase $gvar__eval = 14 Const = 15 - def ruby(*args) - args = ['-e', '$>.write($<.read)'] if args.empty? - ruby = EnvUtil.rubybin - f = IO.popen([ruby] + args, 'r+') - yield(f) - ensure - f.close unless !f || f.closed? - end - def test_eval_basic assert_equal nil, eval("nil") assert_equal true, eval("true") @@ -401,11 +391,4 @@ class TestEval < Test::Unit::TestCase end.join end end - - def test_eval_with_toplevel_binding # [ruby-dev:37142] - ruby("-e", "x = 0; eval('p x', TOPLEVEL_BINDING)") do |f| - f.close_write - assert_equal("0", f.read.chomp) - end - end end -- cgit v1.2.3