Open aanari opened 9 years ago
@aanari can you specify what version of Test::Builder
you are using? There has been several changes to Test::More
recently and I want to make sure I'm testing against the same version. And can you give a brief example test that throws this warning?
I'm seeing this issue with Test::Builder 1.001014. The minimal test I need to see this is:
use Test::Builder;
my $tb = Test::Builder->new;
$tb->is_eq( 1, 1 );
$tb->done_testing;
It doesn't seem to happen with $tb->ok(...)
, so I'm guessing some of the internals got changed and the $Test::Builder::Level
isn't quite what Test::Pretty expects. It seems is_eq
is now implemented in terms of cmp_ok
, so that might change what's going on.
This pull request fixes the following erroneous warning output that occurs with more recent versions of Test::Builder, and allows Test::Pretty to work correctly:
I tested the 0.31 tarball locally and everything works fine, and it passes all existing tests in the suite.