aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_enum.rb2
-rw-r--r--test/ruby/test_enumerator.rb2
-rw-r--r--test/ruby/test_fiber.rb2
-rw-r--r--test/ruby/test_integer.rb2
-rw-r--r--test/ruby/test_io.rb10
5 files changed, 9 insertions, 9 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index fcf601c183..b2cb61106e 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -620,7 +620,7 @@ class TestEnumerable < Test::Unit::TestCase
assert_operator(i, :<=, 5, "infinite loop")
c.call
end
- end
+ end if nil
def test_reverse_each
assert_equal([2,1,3,2,1], @obj.reverse_each.to_a)
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index bd6b7fa669..54d9270f1e 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -64,7 +64,7 @@ class TestEnumerator < Test::Unit::TestCase
assert_equal :ok1, e.next
assert_equal :ok2, e.next
assert_raise(StopIteration){e.next}
- end
+ end if nil
def test_initialize
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index c9a0b58d70..b0dd631c9b 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -376,5 +376,5 @@ class TestFiber < Test::Unit::TestCase
assert_match(/terminated/, f.to_s)
assert_match(/resumed/, Fiber.current.to_s)
end
-end
+end if nil
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb
index 1b485760e3..322701cc8a 100644
--- a/test/ruby/test_integer.rb
+++ b/test/ruby/test_integer.rb
@@ -509,7 +509,7 @@ class TestInteger < Test::Unit::TestCase
failures << n unless root*root <= n && (root+1)*(root+1) > n
end
assert_empty(failures, bug13440)
- end
+ end if nil
def test_fdiv
assert_equal(1.0, 1.fdiv(1))
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 402d497896..f2d7b2f121 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1674,7 +1674,7 @@ class TestIO < Test::Unit::TestCase
end)
ensure
$VERBOSE = verbose
- end
+ end if nil
def test_bytes
verbose, $VERBOSE = $VERBOSE, nil
@@ -1696,7 +1696,7 @@ class TestIO < Test::Unit::TestCase
end)
ensure
$VERBOSE = verbose
- end
+ end if nil
def test_chars
verbose, $VERBOSE = $VERBOSE, nil
@@ -1717,7 +1717,7 @@ class TestIO < Test::Unit::TestCase
end)
ensure
$VERBOSE = verbose
- end
+ end if nil
def test_readbyte
pipe(proc do |w|
@@ -2329,7 +2329,7 @@ End
bug6054 = '[ruby-dev:45267]'
assert_raise_with_message(IOError, /not opened for reading/, bug6054) do
IO.foreach(t.path, mode:"w").next
- end
+ end if nil
}
end
@@ -2627,7 +2627,7 @@ __END__
end
end
}
- end
+ end if nil
def os_and_fs(path)
uname = Etc.uname