Subject: | Test fail with YAML-0.95 |
$ prove -b -v t/00-compile.t
t/00-compile.t ..
1..36
ok 1 - Test::Apocalypse loaded ok
ok 2 - Test::Apocalypse::AutoLoader loaded ok
ok 3 - Test::Apocalypse::CPANMeta loaded ok
ok 4 - Test::Apocalypse::CPANMeta_JSON loaded ok
ok 5 - Test::Apocalypse::CPANMeta_YAML loaded ok
ok 6 - Test::Apocalypse::CheckChanges loaded ok
ok 7 - Test::Apocalypse::Compile loaded ok
ok 8 - Test::Apocalypse::ConsistentVersion loaded ok
ok 9 - Test::Apocalypse::DOSnewline loaded ok
YAML::Any does not define $YAML::Any::VERSION--version check failed at lib/Test/Apocalypse/Dependencies.pm line 22.
BEGIN failed--compilation aborted at lib/Test/Apocalypse/Dependencies.pm line 22.
Compilation failed in require at -e line 1.
not ok 10 - Test::Apocalypse::Dependencies loaded ok
# Failed test 'Test::Apocalypse::Dependencies loaded ok'
# at t/00-compile.t line 46.
# ''
# doesn't match '(?^s:^\s*Test::Apocalypse::Dependencies ok)'
This is caused by upgrading YAML from 0.94 to 0.95. The code checks for YAML modules version, but YAML-0.95 changed how the YAML's version is declared:
-$YAML::VERSION = '0.94';
+our $VERSION = '0.95';