Call mro reinit in tests only on 5.8
[dbsrgits/DBIx-Class.git] / t / cdbi / 68-inflate_has_a.t
index 04abccb..246a319 100644 (file)
@@ -18,7 +18,7 @@ DBICTest::Schema::CD->has_a( 'year', 'DateTime',
       inflate => sub { DateTime->new( year => shift ) },
       deflate => sub { shift->year }
 );
-Class::C3->reinitialize;
+Class::C3->reinitialize if DBIx::Class::_ENV_::OLD_MRO;
 
 # inflation test
 my $cd = $schema->resultset("CD")->find(3);