In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/703227f1549138154a892277bca67170373038d9?hp=057d0762a3f1ec936b6fc44f6c6d9daa99a2f751>
- Log ----------------------------------------------------------------- commit 703227f1549138154a892277bca67170373038d9 Author: Father Chrysostomos <[email protected]> Date: Tue Dec 4 14:40:26 2012 -0800 override.t: Suppress deprecation warning If we have overridden CORE::GLOBAL::require for the sake of testing it, we canât do âno warningsâ obviously. ----------------------------------------------------------------------- Summary of changes: t/op/override.t | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/t/op/override.t b/t/op/override.t index e62f785..9202957 100644 --- a/t/op/override.t +++ b/t/op/override.t @@ -63,7 +63,11 @@ is( $r, join($dirsep, "Foo", "Bar.pm") ); } { - no warnings 'deprecated'; + BEGIN { + # Canât do âno warningsâ with CORE::GLOBAL::require overridden. :-) + CORE::require warnings; + unimport warnings 'deprecated'; + } my $_ = 'bar.pm'; require; is( $r, 'bar.pm' ); -- Perl5 Master Repository
