Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by adrianh (Chancellor)
on Apr 01, 2006 at 16:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://540652]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-26 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found