summaryrefslogtreecommitdiff
path: root/test/psych/test_yamldbm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_yamldbm.rb')
-rw-r--r--test/psych/test_yamldbm.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index 23c7c9e5644..dba9eee2a9d 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -13,6 +13,7 @@ module Psych
class YAMLDBMTest < TestCase
def setup
+ @engine, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
@dir = Dir.mktmpdir("rubytest-file")
File.chown(-1, Process.gid, @dir)
@yamldbm_file = make_tmp_filename("yamldbm")
@@ -20,6 +21,7 @@ module Psych
end
def teardown
+ YAML::ENGINE.yamler = @engine
@yamldbm.clear
@yamldbm.close
FileUtils.remove_entry_secure @dir