From 8536b78f5d3792fe8113c17b0ae213432d5e654c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 4 Jan 2012 15:48:53 -0600 Subject: clean up the test --- t/hide_middleman.t | 11 ++++++----- 1 file 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, -- cgit v1.2.3