X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F403-method-modifiers.t;h=8a4317f79941a657aee29bb41ac4abbc28c3d69f;hb=4fcab48881ecd200c3d83d563fccda833fdc5c28;hp=141534b5737659efd11f60a717c06de8b34c4377;hpb=c13900f12aef41dec5bc9661cb720ccb709c9a5b;p=gitmo%2FMouse.git diff --git a/t/403-method-modifiers.t b/t/403-method-modifiers.t index 141534b..8a4317f 100644 --- a/t/403-method-modifiers.t +++ b/t/403-method-modifiers.t @@ -3,14 +3,14 @@ use strict; use warnings; use Test::More; BEGIN { - if (eval "require Class::Method::Modifiers; 1") { + if (eval {require Class::Method::Modifiers::Fast } || eval {require Class::Method::Modifiers }) { plan tests => 4; } else { plan skip_all => "Class::Method::Modifiers required for this test"; } } -use Mouse::Util ':test'; +use Test::Exception; my @calls; my ($before, $after, $around);