Your message dated Thu, 13 Apr 2006 15:53:45 +0300
with message-id <[EMAIL PROTECTED]>
and subject line Bug#209078: Test::More re-imports in plan
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: perl-modules
Version: 5.8.0-19
Severity: minor

I was suprised to find that Test::More imported fail even though I asked
it not to:

[EMAIL PROTECTED]:~>perl -e 'use warnings; use strict;BEGIN { sub fail { @_ }
} ; use Test::More import => ["!fail"]; plan tests => 1'
1..1
Prototype mismatch: sub main::fail vs (;$) at -e line 1
# No tests run!

But it turns out that plan() re-imports everything. The only way to get
the desired behavior is the repeetative and ugly:

[EMAIL PROTECTED]:~>perl -e 'use warnings; use strict;BEGIN { sub fail { @_ }
} ; use Test::More import => ["!fail"]; plan tests => 1, import =>
["!fail"]'
1..1
# No tests run!

Yuck.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dragon 2.4.22 #1 Tue Aug 26 17:27:18 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages perl-modules depends on:
ii  perl                          5.8.0-19   Larry Wall's Practical Extraction 

-- no debconf information

-- 
see shy jo

Attachment: pgpvCGBTiOSD3.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Package: perl
Version: 5.8.7-2

On Sun, Sep 07, 2003 at 01:45:50AM -0400, Joey Hess wrote:
> Package: perl-modules
> Version: 5.8.0-19
> Severity: minor
> 
> I was suprised to find that Test::More imported fail even though I asked
> it not to:
> 
> [EMAIL PROTECTED]:~>perl -e 'use warnings; use strict;BEGIN { sub fail { @_ }
> } ; use Test::More import => ["!fail"]; plan tests => 1'
> 1..1
> Prototype mismatch: sub main::fail vs (;$) at -e line 1
> # No tests run!

Hi,

this was fixed in Test-Simple 0.51_01:

0.51_01  Fri Nov 26 02:59:30 EST 2004
    - plan() was accidentally exporting functions [rt.cpan.org 8385]

The fix made it into sid in perl 5.8.7-2.

I'm closing the bug accordingly with permission from the maintainer.

Cheers,
-- 
Niko Tyni       [EMAIL PROTECTED]

--- End Message ---

Reply via email to