summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-01-25 22:47:15 +0900
committerGitHub <[email protected]>2019-01-25 22:47:15 +0900
commitfc5dc5270cbca2c815d0a353075c01e0cb34b89f (patch)
tree497338b77e68f4f6746538de8b86adbc1fb19496 /mrbgems
parenta2615900c09cf18c6e26badbed04145955c80205 (diff)
parentbdbbac999f00532559c1b3b9aa2b372cd26eddc0 (diff)
downloadmruby-fc5dc5270cbca2c815d0a353075c01e0cb34b89f.tar.gz
mruby-fc5dc5270cbca2c815d0a353075c01e0cb34b89f.zip
Merge pull request #4245 from shuujii/remove-assert_nothing_raised-in-io-test
Remove definition of `assert_nothing_raised` in `IO` test
Diffstat (limited to 'mrbgems')
-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