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