From 773f36d7fcb67ddf7ea9b204acc0f014e7960dbd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Feb 2021 09:20:59 +0100 Subject: [PATCH] Bug 27673: Fix t/Context.t YAML::XS is not failing on that string, it generates 'uno - dos' => "asd" This new string is not YAML valid because of "found a tab character that violate intendation" --- t/Context.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Context.t b/t/Context.t index 553e992a28..8bff644cd5 100755 --- a/t/Context.t +++ b/t/Context.t @@ -42,7 +42,7 @@ subtest 'yaml_preference() tests' => sub { is_deeply( $pref, $data, 'yaml_preference returns the right structure' ); - $context->mock( 'preference', q{- uno - dos: asd} ); + $context->mock( 'preference', qq{- uno: dsa\n\t- dos: asd} ); warning_like { $pref = C4::Context->new->yaml_preference('nothing') } qr/^Unable to parse nothing syspref/, -- 2.20.1