diff options
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r-- | test/ruby/test_marshal.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 74f950b64c..8a10ded463 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -336,7 +336,9 @@ class TestMarshal < Test::Unit::TestCase re = Tempfile.open("marshal_regexp") do |f| f.binmode.write("\x04\bI/\x00\x00\x06:\rencoding\"\rUS-ASCII") f.close - Marshal.load(f.open.binmode) + re2 = Marshal.load(f.open.binmode) + f.close(true) + re2 end assert_equal(//, re) end |