]> Dogcows Code - chaz/p5-File-KDBX/commitdiff
Fix ambiguous warnings sub & package test failure
authorCharles McGarvey <ccm@cpan.org>
Tue, 3 May 2022 22:33:26 +0000 (16:33 -0600)
committerCharles McGarvey <ccm@cpan.org>
Wed, 4 May 2022 01:17:39 +0000 (19:17 -0600)
t/error.t

index fabaa172cf2a9f9644f267d4bd5eec93fe377546..79ad54f8657eb966be346839ded8d444f41e15de 100644 (file)
--- a/t/error.t
+++ b/t/error.t
@@ -80,7 +80,7 @@ subtest 'Warnings' => sub {
     }
 
     SKIP: {
     }
 
     SKIP: {
-        skip 'warnings::warnif_at_level is required', 1 if !warnings->can('warnif_at_level');
+        skip 'warnings::warnif_at_level is required', 1 if !warnings::->can('warnif_at_level');
         no warnings 'File::KDBX';
         my @warnings = warnings { alert 'uh oh' };
         is @warnings, 0, 'Warnings can be disabled lexically'
         no warnings 'File::KDBX';
         my @warnings = warnings { alert 'uh oh' };
         is @warnings, 0, 'Warnings can be disabled lexically'
@@ -88,7 +88,7 @@ subtest 'Warnings' => sub {
     }
 
     SKIP: {
     }
 
     SKIP: {
-        skip 'warnings::fatal_enabled_at_level is required', 1 if !warnings->can('fatal_enabled_at_level');
+        skip 'warnings::fatal_enabled_at_level is required', 1 if !warnings::->can('fatal_enabled_at_level');
         use warnings FATAL => 'File::KDBX';
         my $exception = exception { alert 'uh oh' };
         like $exception, qr/uh oh/, 'Warnings can be fatal';
         use warnings FATAL => 'File::KDBX';
         my $exception = exception { alert 'uh oh' };
         like $exception, qr/uh oh/, 'Warnings can be fatal';
This page took 0.023949 seconds and 4 git commands to generate.