Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
11306
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
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


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.