Runtime check to skip the plan, ergo need to runtime import
[catagits/Catalyst-Runtime.git] / 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(