Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Problem when Test::Deep and Test::Class are used together

by adrianh (Chancellor)
on Apr 01, 2006 at 16:26 UTC ( #540652=note: print w/replies, xml ) Need Help??


in reply to Problem when Test::Deep and Test::Class are used together

This is happening because Test::Deep defines it's own isa() subroutine, which has different functionality from the UNIVERSAL::isa.

This means that when runtests() is doing it's automagical "find all test classes" using Test::Deep->isa('Test::Class') it always get a true value - so incorrectly treats it as a Test::Class.

Expect a patched Test::Class soon :-)

Replies are listed 'Best First'.
Re^2: Problem when Test::Deep and Test::Class are used together
by fergal (Chaplain) on Apr 23, 2006 at 22:07 UTC
    Hmm, that's interesting. It's not really a bug to have an isa subroutine in a non-OO module but it can lead to confusion. If it wasn't part of the interface I'd rip it out.
      Hmm, that's interesting. It's not really a bug to have an isa subroutine in a non-OO module but it can lead to confusion.

      Yup. Yet another quirk of Perl 5's OO system :-/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2019-10-15 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?