diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-27 02:10:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-27 02:10:53 +0000 |
commit | 180c744b3b4043b2491031a4af9c8cbe4c0ae2ab (patch) | |
tree | 0937ce3610db86e888ef38a9c6ef7b52ab91d90c /test/test_pp.rb | |
parent | 909bc583a4f5c5c09fd47b89f44005d66b8bc674 (diff) | |
download | bundler-180c744b3b4043b2491031a4af9c8cbe4c0ae2ab.tar.gz |
* numeric.c (rb_float_new_in_heap), include/ruby/ruby.h:
make all Float objects frozen.
[ruby-dev:46081] [ruby-trunk - Feature #6936]
Most part of patch by NARUSE, Yui <naruse@ruby-lang.org>.
* class.c (singleton_class_of): raise TypeError when
trying to define a singleton method on Float objects.
* vm.c (vm_define_method): ditto.
* test/ruby/marshaltestlib.rb: catch up above changes.
* test/ruby/test_class.rb: ditto.
* test/test_pp.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_pp.rb')
-rw-r--r-- | test/test_pp.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb index acd3e835b9..28a33fec5a 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -107,10 +107,6 @@ class PPInspectTest < Test::Unit::TestCase a.instance_eval { @a = nil } result = PP.pp(a, '') assert_equal("#{a.inspect}\n", result) - a = 1.0 - a.instance_eval { @a = nil } - result = PP.pp(a, '') - assert_equal("#{a.inspect}\n", result) end def test_to_s_without_iv |