From 5141d3ea7986da8d0dcf51e6b34c99308210bf14 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 18 Nov 2004 08:11:12 +0000 Subject: * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dbm/test_dbm.rb | 2 +- test/gdbm/test_gdbm.rb | 2 +- test/soap/test_property.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index 2de73d1d5e..fb63297e6c 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -47,7 +47,7 @@ if defined? DBM def test_freeze DBM.open("#{TMPROOT}/a") {|d| d.freeze - assert_raises(TypeError) { d["k"] = "v" } + assert_raises(RuntimeError) { d["k"] = "v" } } end end diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index c90f4a6074..1944f7961a 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -45,7 +45,7 @@ if defined? GDBM def test_freeze GDBM.open("#{TMPROOT}/a.dbm") {|d| d.freeze - assert_raises(TypeError) { d["k"] = "v" } + assert_raises(RuntimeError) { d["k"] = "v" } } end end diff --git a/test/soap/test_property.rb b/test/soap/test_property.rb index 1cc826695f..5cd25a30f7 100644 --- a/test/soap/test_property.rb +++ b/test/soap/test_property.rb @@ -130,7 +130,7 @@ __EOP__ tag = Object.new tested = false @prop.add_hook("foo.bar") do |key, value| - assert_raise(TypeError) do + assert_raise(RuntimeError) do key << "baz" end tested = true -- cgit v1.2.3