X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F201-squirrel.t;h=c2fb73bd854b815428de659a0859a56c8f2447eb;hb=b03fda9f71bd6f81a435f1df67be4131da86189d;hp=85c0fe5885a27f25017163576d87a85479d554b6;hpb=01db075b42d0223394e07ab15ff55defed9df903;p=gitmo%2FMouse.git diff --git a/t/201-squirrel.t b/t/201-squirrel.t index 85c0fe5..c2fb73b 100644 --- a/t/201-squirrel.t +++ b/t/201-squirrel.t @@ -4,7 +4,12 @@ use strict; use warnings; use Test::More; -use Mouse::Util 'blessed'; +use Scalar::Util 'blessed'; + +# Don't spew deprecation warnings onto the user's screen +BEGIN { + $SIG{__WARN__} = sub { warn $_[0] if $_[0] !~ /Squirrel is deprecated/ }; +} do { package Foo;