Fixed array test slowness by preventing Test::Builder's SIG{__DIE__} from being called
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / Array.pm
index c6e9bf7..a11619a 100644 (file)
@@ -13,7 +13,7 @@ use base 'DBM::Deep';
 use Scalar::Util ();
 
 sub _get_self {
-    eval { tied( @{$_[0]} ) } || $_[0]
+    eval { local $SIG{'__DIE__'}; tied( @{$_[0]} ) } || $_[0]
 }
 
 sub TIEARRAY {