in reply to I don't care about *your* warnings!
First, I'm curious as to why I'm seeing these warnings
You're seeing them because (under the hood) Test::Class is doing:
eval { Contextual::Return::Value->isa( 'SomeOtherClass' ) }
and Contextual::Return::Value::AUTOLOAD isn't written with autoloading class methods in mind and assuming that its first argument is a reference. I've submitted an RT ticket. I might tweak T::C to avoid this, but I think this is really C:R:V's fault :-)
Is there any way for me to essentially turn warnings off for Contextual::Return, short of making a local copy and commenting it out?
$SIG{ __WARN__ } = sub { return if caller eq 'Contextual::Return::Value'; warn @_; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I don't care about *your* warnings!
by agianni (Hermit) on Mar 01, 2007 at 19:49 UTC | |
by adrianh (Chancellor) on Mar 02, 2007 at 13:31 UTC | |
|
Re^2: I don't care about *your* warnings!
by adrianh (Chancellor) on Mar 01, 2007 at 16:53 UTC |