Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the nextgen CPAN distribution.

Report information
The Basics
Id: 61996
Status: resolved
Priority: 0/
Queue: nextgen

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.05
Fixed in: (no value)



Subject: Quiet warnings about nextgen->import in tests
The attached patch quiets "Unquoted string "nextgen" may clash with future reserved word" warning in the tests.
Subject: 0001-Clean-up-warnings-about-unquoted-nextgen.patch
From 9f49909d9b3f0321c267d9d47d4f2958467e5d21 Mon Sep 17 00:00:00 2001 From: Michael G. Schwern <schwern@pobox.com> Date: Fri, 8 Oct 2010 11:28:47 -0400 Subject: [PATCH] Clean up warnings about unquoted nextgen. --- t/01_procedural_and_blacklist.t | 2 +- t/02_01_DashE_wo_nextgen.t | 2 +- t/03_oo_nextgen.t | 2 +- t/03_oo_vanilla.t | 2 +- t/10_blacklist_require_chain.t | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/t/01_procedural_and_blacklist.t b/t/01_procedural_and_blacklist.t index ae84e5d..031bb90 100644 --- a/t/01_procedural_and_blacklist.t +++ b/t/01_procedural_and_blacklist.t @@ -5,7 +5,7 @@ use Test::More tests => 9; BEGIN { use_ok( 'nextgen' ) or exit; - nextgen->import(); + "nextgen"->import(); } diff --git a/t/02_01_DashE_wo_nextgen.t b/t/02_01_DashE_wo_nextgen.t index 42b0f57..e538c8a 100644 --- a/t/02_01_DashE_wo_nextgen.t +++ b/t/02_01_DashE_wo_nextgen.t @@ -4,7 +4,7 @@ use Test::More tests => 2; BEGIN { use_ok( 'nextgen' ) or exit; - nextgen->import(); + "nextgen"->import; } eval { Class->new }; diff --git a/t/03_oo_nextgen.t b/t/03_oo_nextgen.t index b092d1d..7cd3a73 100644 --- a/t/03_oo_nextgen.t +++ b/t/03_oo_nextgen.t @@ -4,7 +4,7 @@ use Test::More tests => 3; BEGIN { use_ok( 'nextgen' ) or exit; - nextgen->import(); + "nextgen"->import(); } package A; diff --git a/t/03_oo_vanilla.t b/t/03_oo_vanilla.t index 080b031..da781a6 100644 --- a/t/03_oo_vanilla.t +++ b/t/03_oo_vanilla.t @@ -5,7 +5,7 @@ use Test::More tests => 3; BEGIN { use_ok( 'nextgen' ) or exit; - nextgen->import(); + "nextgen"->import(); } diff --git a/t/10_blacklist_require_chain.t b/t/10_blacklist_require_chain.t index 77cbd5b..b66a577 100644 --- a/t/10_blacklist_require_chain.t +++ b/t/10_blacklist_require_chain.t @@ -7,7 +7,7 @@ use Test::More tests => 3; BEGIN { use_ok( 'nextgen' ) or exit; - nextgen->import(); + "nextgen"->import(); } eval 'require "foo";'; -- 1.7.3.1
On Fri Oct 08 11:26:48 2010, MSCHWERN wrote: Show quoted text
> The attached patch quiets "Unquoted string "nextgen" may clash with > future reserved word" warning in the tests.
It is interesting that these warnings don't trigger under prove -lv. Thanks for patch. -- Evan Carroll System Lord of the Internets http://www.evancarroll.com