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 :-/