We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ensure
1 parent 99503ab commit edabdd9Copy full SHA for edabdd9
test/ruby/test_marshal.rb
@@ -653,10 +653,10 @@ def test_unloadable_data
653
Marshal.load(d)
654
}
655
656
- # cleanup
+ ensure
657
self.class.class_eval do
658
remove_const name
659
- end
+ end if c
660
end
661
662
def test_unloadable_userdef
@@ -670,10 +670,10 @@ class << c
670
671
672
673
674
675
676
677
678
679
def test_recursive_userdef
0 commit comments