Subject: | Tests stopped passing today (2009-12-28) |
The 02-examples.t test contains this code:
my $dt = DateTime::Format::ISO8601->parse_datetime( '-W-5' );
IIUC, this dies in this week which is the last week of the year and has no day 5 this year. It dies with "2009 is not a leap year".
The trace in the debugger is
2009 is not a leap year.
at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser/Regex.pm line 128
at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/x86_64-linux-ld/DateTime.pm line 593
DateTime::from_day_of_year(undef, 'day_of_year', 366, 'year', 2009) called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser/Regex.pm line 128
DateTime::Format::Builder::Parser::Regex::make('DateTime::Format::Builder::Parser::Regex=HASH(0x273ad50)', '-W-5', undef, 'HASH(0x273fa80)') called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser/generic.pm line 123
DateTime::Format::Builder::Parser::generic::__ANON__[/home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser/generic.pm:125]('DateTime::Format::ISO8601', '-W-5', 'HASH(0x29ca538)') called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser.pm line 538
DateTime::Format::Builder::Parser::__ANON__[/home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser.pm:542]('DateTime::Format::ISO8601', '-W-5', 'HASH(0x29ca538)') called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser.pm line 443
DateTime::Format::Builder::Parser::__ANON__[/home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser.pm:455]('DateTime::Format::ISO8601', '-W-5') called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder/Parser.pm line 85
DateTime::Format::Builder::Parser::parse('DateTime::Format::Builder::Parser=HASH(0x27227d8)', 'DateTime::Format::ISO8601', '-W-5') called at /home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder.pm line 189
DateTime::Format::Builder::__ANON__[/home/src/perl/repoperls/installed-perls/perl/v5.11.1-152-g0c2c01a/lib/site_perl/5.11.1/DateTime/Format/Builder.pm:190]('DateTime::Format::ISO8601', '-W-5') called at t/02_examples.t line 281
# Looks like you planned 174 tests but ran 48.
# Looks like your test exited with 255 just after 48.
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
HTH, Thanks!