Ticket #1993: tt1993-yaml-tests.patch

File tt1993-yaml-tests.patch, 1.2 KB (added by doughera, 4 years ago)
  • t/tools/show_deprecated.t

    diff --git a/t/tools/show_deprecated.t b/t/tools/show_deprecated.t
    index cc762d2..5e515d4 100644
    a b  
    2424 
    2525use Test::More; 
    2626use File::Spec::Functions; 
    27 use YAML qw/LoadFile/; 
     27 
     28eval {require YAML; YAML->import('LoadFile')}; 
     29if ($@) { 
     30   plan(skip_all => "YAML.pm required for this test."); 
     31} 
     32 
     33# List::MoreUtils.pm is also used by show_deprecated.pl 
     34eval {require List::MoreUtils; List::MoreUtils->import('any')}; 
     35if ($@) { 
     36   plan(skip_all => "List::MoreUtils.pm required for this test."); 
     37} 
    2838 
    2939plan tests => 1; 
    3040 
  • t/tools/show_experimental.t

    diff --git a/t/tools/show_experimental.t b/t/tools/show_experimental.t
    index 1352878..885d35f 100644
    a b  
    2424 
    2525use Test::More; 
    2626use File::Spec::Functions; 
    27 use YAML qw/LoadFile/; 
     27 
     28eval {require YAML; YAML->import('LoadFile')}; 
     29if ($@) { 
     30   plan(skip_all => "YAML.pm required for this test."); 
     31} 
     32 
     33# List::MoreUtils.pm is also used by show_deprecated.pl 
     34eval {require List::MoreUtils; List::MoreUtils->import('any')}; 
     35if ($@) { 
     36   plan(skip_all => "List::MoreUtils.pm required for this test."); 
     37} 
    2838 
    2939plan tests => 1; 
    3040