diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-13 23:41:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-13 23:41:55 +0000 |
commit | 1648e9442dd4a6824bef16f7a45e8cc927aef4f5 (patch) | |
tree | 6b7b60f5847f1a9ca830c2ca0ac437914ccac473 /test/ruby | |
parent | 23506c427d35bca172a3fd5cd2a5e2187c60c6c4 (diff) | |
download | ruby-1648e9442dd4a6824bef16f7a45e8cc927aef4f5.tar.gz |
Revert "* error.c (exc_equal): try implicit conversion for delegator."
This reverts commit r34291 because it breaks objects whose "exception"
method doesn't allow no argument like XMLRPC::FaultException class.
To reproduce: `RuntimeError.new == XMLRPC::FaultException`.
[ruby-core:41979] [Bug #5865]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 22ac2aca1f..028391d1e6 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -380,10 +380,4 @@ end.join load(t.path) end end - - def test_equal - bug5865 = '[ruby-core:41979]' - assert_equal(RuntimeError.new("a"), RuntimeError.new("a"), bug5865) - assert_not_equal(RuntimeError.new("a"), StandardError.new("a"), bug5865) - end end |