summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 08:11:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-18 08:11:12 +0000
commit4560ba4aca6b2726fd4735a1052f3b695e7e7a01 (patch)
tree32145b9377906de9c0fbee260abb9829215cff09 /test
parent35d7953c8d8954ab18ec5a0f7c14983e1095c1a3 (diff)
downloadruby-4560ba4aca6b2726fd4735a1052f3b695e7e7a01.tar.gz
ruby-4560ba4aca6b2726fd4735a1052f3b695e7e7a01.tar.xz
ruby-4560ba4aca6b2726fd4735a1052f3b695e7e7a01.zip
* hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/dbm/test_dbm.rb2
-rw-r--r--test/gdbm/test_gdbm.rb2
-rw-r--r--test/soap/test_property.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 2de73d1d5..fb63297e6 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 c90f4a607..1944f7961 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 1cc826695..5cd25a30f 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