X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Ftxn_scope_guard.t;h=03985b3daf903bffec878db8caf2f3d74f57a7b4;hb=90cfe42b94a798be8ee5498fd57e2e76adff5156;hp=f79ff8dbdaccbd1bc0a9ec4de1886c4af614b06e;hpb=e69b53350cbc835b0de96f0c1f9af4e31ac94fdd;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/txn_scope_guard.t b/t/storage/txn_scope_guard.t index f79ff8d..03985b3 100644 --- a/t/storage/txn_scope_guard.t +++ b/t/storage/txn_scope_guard.t @@ -92,7 +92,9 @@ use DBICTest; no strict 'refs'; no warnings 'redefine'; + local *{DBIx::Class::Storage::DBI::txn_rollback} = sub { die 'die die my darling' }; + Class::C3->reinitialize() if DBIx::Class::_ENV_::OLD_MRO; throws_ok (sub { my $guard = $schema->txn_scope_guard; @@ -120,6 +122,7 @@ use DBICTest; no strict 'refs'; no warnings 'redefine'; local *{DBIx::Class::Storage::DBI::txn_rollback} = sub { die 'die die my darling' }; + Class::C3->reinitialize() if DBIx::Class::_ENV_::OLD_MRO; #The warn from within a DESTROY callback freaks out Test::Warn, do it old-school =begin