We only need local $? if we inline calls to DEMOLISH
[gitmo/Moose.git] / t / 000_load.t
index 38e83d5..9cb0512 100644 (file)
@@ -5,12 +5,8 @@ use warnings;
 
 use Test::More;
 
-{
-    package Foo;
-
-    # Moose will issue a warning if we try to load it from the main
-    # package.
-    ::use_ok('Moose');
+BEGIN {
+    use_ok('Moose');
 }
 
 done_testing;