summaryrefslogtreecommitdiff
path: root/test/ruby/test_marshal.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-29 03:06:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-29 03:06:40 +0000
commit2d55537dce5fde5e3581351bd274ecabf1e284d7 (patch)
treeaca620604b5aa1baec27c92f70333fa92ccdc0a2 /test/ruby/test_marshal.rb
parent1d15bbdae507d8631a58ff32f5fb43986c8fa86e (diff)
* test/ruby/test_marshal.rb: remove temporally files early.
* test/ruby/test_process.rb: ditto. * test/psych/test_exception.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_marshal.rb')
-rw-r--r--test/ruby/test_marshal.rb4
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