summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-01-25 20:02:45 +0900
committerKOBAYASHI Shuji <[email protected]>2019-01-25 20:02:45 +0900
commitbdbbac999f00532559c1b3b9aa2b372cd26eddc0 (patch)
treebdb6524ccf368fd028cfba3e688a4d31db6b9328
parent671447964f8ad494fdde8882007e2cc7e3e11e53 (diff)
downloadmruby-bdbbac999f00532559c1b3b9aa2b372cd26eddc0.tar.gz
mruby-bdbbac999f00532559c1b3b9aa2b372cd26eddc0.zip
Remove definition of `assert_nothing_raised` in `IO` test
-rw-r--r--mrbgems/mruby-io/test/io.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/mrbgems/mruby-io/test/io.rb b/mrbgems/mruby-io/test/io.rb
index e4a449696..881e94185 100644
--- a/mrbgems/mruby-io/test/io.rb
+++ b/mrbgems/mruby-io/test/io.rb
@@ -1,26 +1,6 @@
##
# IO Test
-unless Object.respond_to? :assert_nothing_raised
- def assert_nothing_raised(*exp)
- ret = true
- if $mrbtest_assert
- $mrbtest_assert_idx += 1
- msg = exp.last.class == String ? exp.pop : ""
- begin
- yield
- rescue Exception => e
- msg = "#{msg} exception raised."
- diff = " Class: <#{e.class}>\n" +
- " Message: #{e.message}"
- $mrbtest_assert.push([$mrbtest_assert_idx, msg, diff])
- ret = false
- end
- end
- ret
- end
-end
-
assert('IO TEST SETUP') do
MRubyIOTestUtil.io_test_setup
$cr = MRubyIOTestUtil.win? ? 1 : 0 # "\n" include CR or not