Bugzilla – Attachment 116929 Details for
Bug 27673
Replace YAML with YAML::XS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27673: Fix t/Context.t
Bug-27673-Fix-tContextt.patch (text/plain), 982 bytes, created by
Jonathan Druart
on 2021-02-17 08:22:42 UTC
(
hide
)
Description:
Bug 27673: Fix t/Context.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-02-17 08:22:42 UTC
Size:
982 bytes
patch
obsolete
>From 773f36d7fcb67ddf7ea9b204acc0f014e7960dbd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27673
:
116670
|
116675
|
116694
|
116695
|
116696
|
116737
|
116738
|
116739
|
116740
|
116762
|
116763
|
116764
|
116765
|
116766
|
116778
|
116835
| 116929 |
116990