]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - t/42-deparse.t
Port module loading in tests to VPIT::TestHelpers
[perl/modules/autovivification.git] / t / 42-deparse.t
index 6b3d1e047f85a6efca46b8b1ecfaf86215b128ff..436b03d2bc4d9472ea1f1b5a8ca61361c6bab4b4 100644 (file)
@@ -5,11 +5,13 @@ use warnings;
 
 use Test::More;
 
-if (eval 'use B::Deparse; 1') {
- plan tests => 2;
-} else {
- plan skip_all => 'B::Deparse is not available';
-}
+use lib 't/lib';
+use VPIT::TestHelpers;
+
+load_or_skip('B::Deparse', undef, [ ],
+             'required to test round-trip deparsing compatibility');
+
+plan tests => 2;
 
 my $bd = B::Deparse->new;