From dd6543ab840a2d9da1e333faa92446ac3d903493 Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 6 Feb 2004 13:24:17 +0000 Subject: * 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/branches/ruby_1_8@5634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/pp.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index cd5953a2e..a093bdf3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 6 22:22:50 2004 NAKAMURA, Hiroshi + + * lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance + variable which is defined in the test. + Fri Feb 6 00:48:37 2004 Tanaka Akira * lib/prettyprint.rb (PrettyPrint#first?): obsoleted. 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 -- cgit