develooper Front page | perl.qa | Postings from April 2012

Re: Revert use_ok() change to allow lexical effects?

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
April 10, 2012 14:59
Subject:
Re: Revert use_ok() change to allow lexical effects?
Message ID:
CAHhgV8g6mqfq9cJMq1m+hBKwJVBaisPaErm__y1U7TMNgOHiHw@mail.gmail.com
On Tue, Apr 10, 2012 at 11:52 PM, Mike Doherty <doherty@cs.dal.ca> wrote:
> I don't see any discouragement in the documentation... and what's wrong
> with use_ok to begin with?

If it fails, the module may not be loaded, or partially loaded. In
such circumstances, testing the rest of the code can give very
confusing results. It doesn't make sense to continue testing usually.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About