Runtime check to skip the plan, ergo need to runtime import
Tomas Doran [Thu, 28 Jul 2011 19:11:34 +0000 (20:11 +0100)]
t/aggregate/unit_core_script_server-without_modules.t

index c5588bc..2fc7772 100644 (file)
@@ -7,13 +7,14 @@ use Try::Tiny;
 plan skip_all => "Need Test::Without::Module for this test"
     unless try { require Test::Without::Module; 1 };
 
-use Test::Without::Module qw(
+Test::Without::Module->import(qw(
     Starman
     Plack::Handler::Starman
     MooseX::Daemonize
     MooseX::Daemonize::Pid::File
     MooseX::Daemonize::Core
-);
+));
+
 require "$Bin/../aggregate/unit_core_script_server.t";
 
 Test::Without::Module->unimport(qw(