summaryrefslogtreecommitdiff
path: root/lib/pp.rb
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
commit02d0355e9a7f95a559bf85aa395efb7920e5556e (patch)
tree6c076b599abd0976a39351056b5356c81f7fa870 /lib/pp.rb
parentbdd9d8d5037ffd7f938ee0a5b6727e71f5d3e678 (diff)
* lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
variable which is defined in the test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 81a453d9ab..b0dcf8694b 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