X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fc3_mro.t;h=d987544e93644a9581dfa0c3b7dbb764b3bf8117;hp=c731202c20e07e819b883e4ad687fc01e1f506cd;hb=ae29b412955743885e80350085167b54b69672da;hpb=e16a6c4e6c4d49e73b5286b3186616af14f3f554 diff --git a/t/c3_mro.t b/t/c3_mro.t index c731202..d987544 100644 --- a/t/c3_mro.t +++ b/t/c3_mro.t @@ -4,9 +4,7 @@ use warnings; use Test::More; require Catalyst; require Module::Pluggable::Object; - -eval "require Class::C3"; -plan skip_all => "This test requires Class::C3" if $@; +use MRO::Compat; # Get a list of all Catalyst:: packages in blib via M::P::O my @cat_mods; @@ -34,7 +32,7 @@ plan tests => scalar @cat_mods; # foreach my $cat_mod (@cat_mods) { eval " require $cat_mod "; - eval { Class::C3::calculateMRO($cat_mod) }; - ok(!$@, "calculateMRO for $cat_mod"); + eval { mro::get_linear_isa($cat_mod, 'c3') }; + ok(!$@, "calculateMRO for $cat_mod: $@"); }