[前][次][番号順一覧][スレッド一覧]

ruby-changes:46890

From: nobu <ko1@a...>
Date: Sat, 3 Jun 2017 18:35:47 +0900 (JST)
Subject: [ruby-changes:46890] nobu:r59005 (trunk): test/ruby/test_require.rb: remove duplicate assertion

nobu	2017-06-03 18:35:43 +0900 (Sat, 03 Jun 2017)

  New Revision: 59005

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59005

  Log:
    test/ruby/test_require.rb: remove duplicate assertion

  Modified files:
    trunk/test/ruby/test_require.rb
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 59004)
+++ test/ruby/test_require.rb	(revision 59005)
@@ -435,13 +435,6 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L435
 
       assert_separately([], <<-INPUT)
         abs_dir = "#{ abs_dir }"
-        $: << abs_dir.taint
-        $SAFE = 1
-        assert_raise(SecurityError) {require "#{ file }"}
-      INPUT
-
-      assert_separately([], <<-INPUT)
-        abs_dir = "#{ abs_dir }"
         $: << abs_dir << 'elsewhere'.taint
         assert_nothing_raised {require "#{ file }"}
       INPUT

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]