summaryrefslogtreecommitdiffstats
path: root/t/hide_middleman.t
diff options
context:
space:
mode:
Diffstat (limited to 't/hide_middleman.t')
-rw-r--r--t/hide_middleman.t11
1 files changed, 6 insertions, 5 deletions
diff --git a/t/hide_middleman.t b/t/hide_middleman.t
index 0fa7514..72fa9c6 100644
--- a/t/hide_middleman.t
+++ b/t/hide_middleman.t
@@ -3,15 +3,16 @@ use strict;
use warnings;
use lib 't/hide_middleman';
use Test::More;
-use Test::Exception;
+
+no circular::require -hide => 'base';
my @warnings;
-$SIG{__WARN__} = sub { push @warnings => @_ };
-# Test passes if you comment this out
-no circular::require -hide => 'base';
+{
+ $SIG{__WARN__} = sub { push @warnings => @_ };
-use_ok( 'Foo' );
+ use_ok( 'Foo' );
+}
is_deeply(
\@warnings,