projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix regular common tests
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
Base.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/Base.pm
b/lib/DBIx/Class/Schema/Loader/Base.pm
index
33dff58
..
e1387e9
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/
lib/DBIx/Class/Schema/Loader/Base.pm
@@
-439,7
+439,11
@@
sub _load_external {
or croak "Failed to close $real_inc_path: $!";
# load the class too
- do $real_inc_path;
+ {
+ # turn off redefined warnings
+ $SIG{__WARN__} = sub {};
+ do $real_inc_path;
+ }
die $@ if $@;
}