On Sun, Dec 31, 2006 at 12:45:14PM +0100, A. Pagaltzis wrote: > * David Golden <[EMAIL PROTECTED]> [2006-12-31 11:30]: > > Test::Exception depends on Sub::Uplevel, which overrides > > CORE::GLOBAL::caller, so there is already some deep magic that > > I'm not sure should get rolled into Test::More. > > Ouch. OK, I was thinking of the older implementation that was > quite straightforward Perl (though also buggy, according to the > Changelog). So much for that.
It does use Sub::Uplevel but I can't really see why. It seems only used by way of hiding the internal functions from caller(), perhaps to neaten up error messages or the like...? I can't see why a simple implementation inline in the test script (see some of my other mails) would need to use that, as long as the user was aware of the extra lines. -- Paul "LeoNerd" Evans [EMAIL PROTECTED] ICQ# 4135350 | Registered Linux# 179460 http://www.leonerd.org.uk/
signature.asc
Description: Digital signature