Subject: | Tests fail with Test::Deep 0.116 |
The deep.t test may fail with a "Can't call method "cmp_deeply" on unblessed reference" message. See http://www.cpantesters.org/cpan/report/2701e6a4-19e7-11e5-9ea2-35c8e0bfc7aa for a sample fail report. analysis.cpantesters.org thinks that the failures happen only with Test::Deep 0.116, see http://analysis.cpantesters.org/solved?distv=Test-PDL-0.12
Maybe it's best to make sure that another version than 0.116 is installed, e.g. by writing something like the following in Makefile.PL (untested):
if (eval { require Test::Deep; $Test::Deep::VERSION == 0.116 }) {
$test_deep_prereq_version = 0.117;
} else {
$test_deep_prereq_version = 0; # or whatever the minimum version is
}
...
PREREQ_PM => { ..., 'Test::Deep' => $test_deep_prereq_version, ... }
or just increase the Test::Deep minimum version to 0.117 for all.