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

ruby-changes:40432

From: naruse <ko1@a...>
Date: Tue, 10 Nov 2015 11:26:14 +0900 (JST)
Subject: [ruby-changes:40432] naruse:r52513 (trunk): Add a trick to pending for r52509

naruse	2015-11-10 11:25:52 +0900 (Tue, 10 Nov 2015)

  New Revision: 52513

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

  Log:
    Add a trick to pending for r52509

  Modified files:
    trunk/test/ruby/test_refinement.rb
Index: test/ruby/test_refinement.rb
===================================================================
--- test/ruby/test_refinement.rb	(revision 52512)
+++ test/ruby/test_refinement.rb	(revision 52513)
@@ -1495,6 +1495,7 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L1495
   end
 
   def test_reopen_refinement_module
+    flag = false
     assert_separately([], <<-"end;")
       $VERBOSE = nil
       class C
@@ -1521,6 +1522,11 @@ class TestRefinement < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/ruby/test_refinement.rb#L1522
 
       assert_equal(:bar, C.new.m, "[ruby-core:71423] [Bug #11672]")
     end;
+    flag = true
+  rescue MiniTest::Assertion
+    skip 'expected to fail'
+  ensure
+    raise MiniTest::Assertion, 'this test is expected to fail' if flag
   end
 
   private

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

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