Fixed array test slowness by preventing Test::Builder's SIG{__DIE__} from being called
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / Hash.pm
index 1f95438..4dc0b22 100644 (file)
@@ -5,7 +5,7 @@ use strict;
 use base 'DBM::Deep';
 
 sub _get_self {
-    eval { tied( %{$_[0]} ) } || $_[0]
+    eval { local $SIG{'__DIE__'}; tied( %{$_[0]} ) } || $_[0]
 }
 
 sub TIEHASH {