Skip Menu |

This queue is for tickets about the Test-Class CPAN distribution.

Report information
The Basics
Id: 11306
Status: resolved
Priority: 0/
Queue: Test-Class

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: Can't call method "isa" without a package or object reference at C:\Test-Class-0.09\blib\lib/Test/Class.pm line 253
Devel::Symdump->rnew->packages; will return as one of the values 0 (also known as main::0), and 0->isa(0) will trigger an error, so to fix it change line 252 from grep { defined $_ && $_->isa( $class ) } Devel::Symdump->rnew->packages; to grep { $_ && $_->isa( $class ) } Devel::Symdump->rnew->packages; as the values will always be defined. You could also test for "main::$_"->isa($class) and avoid the truth test altogether, but that feels like cheating :)
FYI, this is triggered by t\run_all_tests.t t\runtests_result.t on win32 platform
Quite right, and fixed now in 0.10. David Wheeler also helped spot this. Thanks for the bug report & fix - although I'd still like to figure out why such bogus looking values are being returned :-) Adrian