ruby-changes:9503
From: yugui <ko1@a...>
Date: Thu, 25 Dec 2008 19:24:24 +0900 (JST)
Subject: [ruby-changes:9503] Ruby:r21043 (ruby_1_9_1): Revert "trunk r28202 : "
yugui 2008-12-25 19:24:17 +0900 (Thu, 25 Dec 2008) New Revision: 21043 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21043 Log: Revert "trunk r28202 : [ruby-dev:37240]" Modified files: branches/ruby_1_9_1/test/ruby/test_eval.rb Index: ruby_1_9_1/test/ruby/test_eval.rb =================================================================== --- ruby_1_9_1/test/ruby/test_eval.rb (revision 21042) +++ ruby_1_9_1/test/ruby/test_eval.rb (revision 21043) @@ -1,5 +1,4 @@ require 'test/unit' -require_relative 'envutil' class TestEval < Test::Unit::TestCase @@ -8,15 +7,6 @@ $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 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/