summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-06 13:24:17 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-06 13:24:17 +0000
commit1ee3eca0d5ee9e5e612b4886dea8aaa80e64724c (patch)
treee2bc9c6e3015ada3a218e08ffb79e02d00181d56
parent853667166b8c65ec2cdf3fc29986b732706f2363 (diff)
downloadruby-1ee3eca0d5ee9e5e612b4886dea8aaa80e64724c.tar.gz
ruby-1ee3eca0d5ee9e5e612b4886dea8aaa80e64724c.tar.xz
ruby-1ee3eca0d5ee9e5e612b4886dea8aaa80e64724c.zip
* lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
variable which is defined in the test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/pp.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3a90b2b9..125988e24 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 6 22:22:50 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
+
+ * lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
+ variable which is defined in the test.
+
Fri Feb 6 18:54:18 2004 akira yamada <akira@ruby-lang.org>
* test/ruby/test_proc.rb (TestProc::test_eq): added a
diff --git a/lib/pp.rb b/lib/pp.rb
index 81a453d9a..b0dcf8694 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -541,6 +541,7 @@ if __FILE__ == $0
a.instance_eval { @a = nil }
result = PP.pp(a, '')
assert_equal("#{a.inspect}\n", result)
+ a.instance_eval { remove_instance_variable("@a") }
end
def test_to_s_without_iv