From f7af7dff0f88dad216d90c4f4c32893ea5f31b9a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 Jan 2022 07:53:36 +0000 Subject: dtas: drop unnecessary "require 'yaml'" statements We use DTAS.yaml_load to wrap all YAML.*load calls, but we still need "require 'yaml'" for various .to_yaml calls. --- test/player_integration.rb | 3 +-- test/test_encoding.rb | 1 - test/test_splitfx.rb | 1 - test/test_tfx.rb | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) (limited to 'test') diff --git a/test/player_integration.rb b/test/player_integration.rb index 4ad0e0c..66d1c6e 100644 --- a/test/player_integration.rb +++ b/test/player_integration.rb @@ -1,11 +1,10 @@ -# Copyright (C) 2013-2020 all contributors +# Copyright (C) all contributors # License: GPL-3.0+ # frozen_string_literal: true require './test/helper' require 'dtas/player' require 'dtas/state_file' require 'dtas/unix_client' -require 'yaml' require 'tempfile' require 'shellwords' require 'timeout' diff --git a/test/test_encoding.rb b/test/test_encoding.rb index 666d185..5cd5da7 100644 --- a/test/test_encoding.rb +++ b/test/test_encoding.rb @@ -3,7 +3,6 @@ # frozen_string_literal: true require './test/helper' require 'dtas' -require 'yaml' class TestEncoding < Testcase def test_encoding diff --git a/test/test_splitfx.rb b/test/test_splitfx.rb index e3bd19d..f2e0e09 100644 --- a/test/test_splitfx.rb +++ b/test/test_splitfx.rb @@ -1,7 +1,6 @@ # Copyright (C) all contributors # License: GPL-3.0+ # frozen_string_literal: true -require 'yaml' require 'dtas/splitfx' require 'thread' require_relative 'helper' diff --git a/test/test_tfx.rb b/test/test_tfx.rb index 51b1900..be68079 100644 --- a/test/test_tfx.rb +++ b/test/test_tfx.rb @@ -4,7 +4,6 @@ require './test/helper' require 'dtas/tfx' require 'dtas/format' -require 'yaml' class TestTFX < Testcase def rate -- cgit v1.2.3-24-ge0c7