diff --git a/ChangeLog b/ChangeLog index d3a90b2b9f..125988e24a 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 18:54:18 2004 akira yamada * test/ruby/test_proc.rb (TestProc::test_eq): added a 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