[libdist-zilla-plugin-test-eol-perl] 08/11: RT#76038 Enforce Test::EOL loading

Intrigeri intrigeri at moszumanska.debian.org
Sun Aug 16 09:19:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.05
in repository libdist-zilla-plugin-test-eol-perl.

commit 884b6ad641a2047b55611a04d6c3a59350ce1a97
Author: Olivier Mengué <dolmen at cpan.org>
Date:   Mon Apr 2 16:41:56 2012 +0200

    RT#76038 Enforce Test::EOL loading
    
    RT#76038: https://rt.cpan.org/Ticket/Display.html?id=76038#txn-1057838
    
    Before this fix, the test succeeds (being skipped) if Test::EOL
    is missing. This means that the test succeeds even if there are
    some EOL problems somewhere.
    
    This patch replace conditional loading with Test::Requires by
    unconditional loading.
    This is fine because the test is run only when AUTHOR_TESTING is set,
    and because Test::EOL is a requirement of DZP::Test::EOL.
---
 lib/Dist/Zilla/Plugin/Test/EOL.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Dist/Zilla/Plugin/Test/EOL.pm b/lib/Dist/Zilla/Plugin/Test/EOL.pm
index 82313ca..ce03756 100644
--- a/lib/Dist/Zilla/Plugin/Test/EOL.pm
+++ b/lib/Dist/Zilla/Plugin/Test/EOL.pm
@@ -66,6 +66,6 @@ ___[ xt/author/test-eol.t ]___
 use strict;
 use warnings;
 use Test::More;
-use Test::Requires qw( Test::EOL );
+use Test::EOL;
 
 all_perl_files_ok({ trailing_whitespace => {{ $trailing_ws }} });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git



More information about the Pkg-perl-cvs-commits mailing list