X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fextra%2Finternals%2Fnamespaces_cleaned.t;h=b8b42b7d7fc4efe2ffd5bd61c3abb35aa55a5bde;hb=c0329273268971824784f239f32c7246e68da9c5;hp=92185aed0e490c19f3df21713acc9f3364b4732f;hpb=35f4cebe5c44fd283aff74fd3dea8c9aa1d6072c;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/extra/internals/namespaces_cleaned.t b/xt/extra/internals/namespaces_cleaned.t index 92185ae..b8b42b7 100644 --- a/xt/extra/internals/namespaces_cleaned.t +++ b/xt/extra/internals/namespaces_cleaned.t @@ -1,5 +1,7 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + BEGIN { - if ($] < 5.010) { + if ( "$]" < 5.010) { # Pre-5.10 perls pollute %INC on unsuccesfull module # require, making it appear as if the module is already @@ -16,7 +18,7 @@ BEGIN { # we want to do this here, in the very beginning, before even # warnings/strict are loaded - unshift @INC, 't/lib'; + require DBICTest::Util::OverrideRequire; DBICTest::Util::OverrideRequire::override_global_require( sub { @@ -35,8 +37,6 @@ use warnings; use Test::More; -use lib 't/lib'; - use DBICTest; use File::Find; use File::Spec;