]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/15-self.t
Consistently format magic types with I<>
[perl/modules/Variable-Magic.git] / t / 15-self.t
index cfca7080faaabace5c1b0732dd9b6a96494654e6..1491dfe372b294a9f72457e3e173c7f12f858fbe 100644 (file)
@@ -5,7 +5,10 @@ use warnings;
 
 use Test::More tests => 17;
 
-use Variable::Magic qw/wizard cast dispell getdata/;
+use Variable::Magic qw<wizard cast dispell getdata>;
+
+use lib 't/lib';
+use Variable::Magic::TestGlobalDestruction;
 
 my $c = 0;
 
@@ -54,8 +57,3 @@ eval q[
  BEGIN { require Variable::Magic::TestDestroyRequired; }
 ];
 is $@, '', 'wizard destruction at the end of BEGIN-time require doesn\'t panic';
-
-if ((defined $ENV{PERL_DESTRUCT_LEVEL} and $ENV{PERL_DESTRUCT_LEVEL} >= 3)
-    or eval "use Perl::Destruct::Level level => 3; 1") {
- diag 'Test global destruction';
-}