From a9210be90221220d46357484d7230443670f178a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Feb 2021 10:09:48 +0100 Subject: [PATCH] Bug 22824: Replace YAML::Syck with YAML::XS in tests In order to understand how things will work after the changes Signed-off-by: Kyle M Hall Signed-off-by: Julian Maurice Signed-off-by: Martin Renvoize --- t/db_dependent/yaml.t | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/t/db_dependent/yaml.t b/t/db_dependent/yaml.t index 177ce18f05..ddb2b63da9 100755 --- a/t/db_dependent/yaml.t +++ b/t/db_dependent/yaml.t @@ -1,22 +1,17 @@ use Modern::Perl; use Test::More; -use YAML::Syck; +use YAML::XS; use Template; use utf8; -$YAML::Syck::ImplicitTyping = 1; -$YAML::Syck::ImplicitUnicode = 1; - my $template = Template->new( ENCODING => 'UTF-8' ); my $vars; my $output; $template->process( 't/db_dependent/data/syspref.pref', $vars, \$output ); -use Data::Printer colored => 1; warn p $output; - -my $yaml = YAML::Syck::Load( $output ); +my $yaml = YAML::XS::Load( $output ); my $syspref_1 = $yaml->{Test}->{Testing}->[0]; my $syspref_2 = $yaml->{Test}->{Testing}->[1]; my $syspref_3 = $yaml->{Test}->{Testing}->[2]; -- 2.20.1