Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 19626
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: aaron [...] FreeBSD.org
ron [...] savage.net.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.31
Fixed in: (no value)



Subject: Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime-0.30/blib/lib/DateTime.pm line 1430
(1) make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00load................ok t/01sanity..............ok t/02last_day............ok t/03components..........ok t/04epoch...............ok t/05set.................ok t/06add.................ok t/07compare.............ok t/09greg................ok 1/35# this may take a minute... t/09greg................ok t/10subtract............ok 1/105Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl- modules/DateTime-0.30/blib/lib/DateTime.pm line 1430. # Failed test '$dt1 + $dur == $dt2' # in t/10subtract.t at line 350. # got: '2005-11-10T00:00:00' # expected: '2005-11-10T00:00:00' # Looks like you failed 1 test of 105. t/10subtract............dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 100 Failed 1/105 tests, 99.05% okay t/11duration............ok t/12week................ok t/13strftime............ok 1/134# New locale: de # New locale: it t/13strftime............ok t/14locale..............ok t/15jd..................ok t/16truncate............ok t/17set_return..........Argument "1882-01-24T04:46:04" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime- 0.30/blib/lib/DateTime.pm line 1430. t/17set_return..........NOK 1 # Failed test 'set() returns self' # in t/17set_return.t at line 17. # got: '1882-01-24T04:46:04' # expected: '1882-01-24T04:46:04' Argument "1882-01-24T14:50:56" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime- 0.30/blib/lib/DateTime.pm line 1430. t/17set_return..........NOK 2 # Failed test 'set_time_zone() returns self' # in t/17set_return.t at line 20. # got: '1882-01-24T14:50:56' # expected: '1882-01-24T14:50:56' t/17set_return..........ok 3/7# Looks like you failed 2 tests of 7. t/17set_return..........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-2 Failed 2/7 tests, 71.43% okay t/18today...............ok t/19leap_second.........ok t/20infinite............ok t/21bad_params..........ok t/22from_doy............ok t/23storable............ok 1/16 skipped: This test needs DateTime::Format::ICal t/24from_object.........ok t/25add_subtract........ok t/26dt_leapsecond_pm....ok t/27delta...............ok t/28dow.................ok t/29overload............ok t/30future_tz...........ok t/31formatter...........ok t/32leap_second2........ok t/33seconds_offset......ok t/34set_tz..............ok t/35rd_values...........ok t/36invalid_local.......ok t/37local-add...........ok t/38local-subtract......ok 1/120Argument "2003-11-06T00:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl- modules/DateTime-0.30/blib/lib/DateTime.pm line 1430. t/38local-subtract......NOK 5 # Failed test 'subtract_datetime is reversible from start point' # in t/38local-subtract.t at line 28. # got: '2003-11-06T00:00:00' # expected: '2003-11-06T00:00:00' Argument "2003-10-26T01:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime- 0.30/blib/lib/DateTime.pm line 1430. t/38local-subtract......NOK 114 # Failed test 'subtraction is reversible' # in t/38local-subtract.t at line 376. # got: '2003-10-26T01:00:00' # expected: '2003-10-26T01:00:00' # Looks like you failed 2 tests of 120. t/38local-subtract......dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 5, 114 Failed 2/120 tests, 98.33% okay t/99-pod................ok 1/1 skipped: File::Find::Rule not installed Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------- -------- t/10subtract.t 1 256 105 1 0.95% 100 t/17set_return.t 2 512 7 2 28.57% 1-2 t/38local-subtract.t 2 512 120 2 1.67% 5 114 2 subtests skipped. Failed 3/39 test scripts, 92.31% okay. 5/3113 subtests failed, 99.84% okay. make: *** [test_dynamic] Error 29 (2) Perl V 5.8.0
Show quoted text
> t/38local-subtract......NOK 114 > # Failed test 'subtraction is reversible' > # in t/38local-subtract.t at line 376. > # got: '2003-10-26T01:00:00' > # expected: '2003-10-26T01:00:00' > # Looks like you failed 2 tests of 120.
My best guess is that these failures are related to the version of Test::More you're using. Which version do you have installed?
Subject: Re: [rt.cpan.org #17236] Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime-0.30/blib/lib/DateTime.pm line 1430
Date: Tue, 21 Feb 2006 16:44:34 +1100
To: via RT <bug-DateTime [...] rt.cpan.org>
From: Ron Savage <ron [...] savage.net.au>
On Mon, 20 Feb 2006 23:23:01 -0500 (EST), via RT wrote: Hi Show quoted text
> My best guess is that these failures are related to the version of > Test::More you're using. Which version do you have installed?
0.62. -- Ron Savage ron@savage.net.au http://savage.net.au/index.html
Subject: Re: [rt.cpan.org #17236] Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /its/user1/m/monquest/perl-modules/DateTime-0.30/blib/lib/DateTime.pm line 1430
Date: Tue, 21 Feb 2006 16:04:08 -0600 (CST)
To: "ron [...] savage.net.au via RT" <bug-DateTime [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Tue, 21 Feb 2006, ron@savage.net.au via RT wrote: Show quoted text
>> My best guess is that these failures are related to the version of >> Test::More you're using. Which version do you have installed?
> > 0.62.
Well, there goes that idea ;) The only other thing I can think of is that it might somehow be related to the version of Perl you're using. I can't duplicate this error on my system with 5.8.7. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
Subject: Make test fails under Perl 5.6.2, FreeBSD 5.2.1
Here's the build log: fivetwoone# perl Makefile.PL Testing if you have a C compiler cc -O -pipe -mcpu=pentiumpro -c test.c Checking if your kit is complete... Looks good Writing Makefile for DateTime fivetwoone# make make test cp lib/DateTime/Helpers.pm blib/lib/DateTime/Helpers.pm cp lib/DateTime/LeapSecond.pm blib/lib/DateTime/LeapSecond.pm cp lib/DateTime.pm blib/lib/DateTime.pm cp lib/DateTime/Duration.pm blib/lib/DateTime/Duration.pm cp lib/DateTime/Infinite.pm blib/lib/DateTime/Infinite.pm cp lib/DateTimePPExtra.pm blib/lib/DateTimePPExtra.pm cp lib/DateTimePP.pm blib/lib/DateTimePP.pm /usr/bin/perl /usr/local/lib/perl5/site_perl/5.6.2/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.2/ExtUtils/typemap DateTime.xs > DateTime.xsc && mv DateTime.xsc DateTime.c cc -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.2/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include -O -pipe -mcpu=pentiumpro -DVERSION=\"0.31\" -DXS_VERSION=\"0.31\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.6.2/mach/CORE" DateTime.c Running Mkbootstrap for DateTime () chmod 644 DateTime.bs rm -f blib/arch/auto/DateTime/DateTime.so LD_RUN_PATH="" cc -shared -L/usr/local/lib DateTime.o -o blib/arch/auto/DateTime/DateTime.so chmod 755 blib/arch/auto/DateTime/DateTime.so cp DateTime.bs blib/arch/auto/DateTime/DateTime.bs chmod 644 blib/arch/auto/DateTime/DateTime.bs Manifying blib/man3/DateTime::LeapSecond.3 Manifying blib/man3/DateTime::Helpers.3 Manifying blib/man3/DateTime::Infinite.3 Manifying blib/man3/DateTime::Duration.3 Manifying blib/man3/DateTime.3 fivetwoone# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00load................ok t/01sanity..............ok t/02last_day............ok t/03components..........ok t/04epoch...............ok t/05set.................ok t/06add.................ok t/07compare.............ok t/09greg................ok 13/35# this may take a minute... t/09greg................ok t/10subtract............ok 47/105Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/10subtract............NOK 100 # Failed test '$dt1 + $dur == $dt2' # in t/10subtract.t at line 350. # got: '2005-11-10T00:00:00' # expected: '2005-11-10T00:00:00' Argument "2005-11-10T00:00:00" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/10subtract............NOK 104 # Failed test '$dt1 + $dur == $dt2' # in t/10subtract.t at line 371. # got: '2005-11-10T00:00:00' # expected: '2005-11-10T00:00:00' # Looks like you failed 2 tests of 105. t/10subtract............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 100, 104 Failed 2/105 tests, 98.10% okay t/11duration............ok t/12week................ok t/13strftime............ok 1/134# New locale: de # New locale: it t/13strftime............ok t/14locale..............ok t/15jd..................ok t/16truncate............ok t/17set_return..........Argument "1882-05-31T22:01:42" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/17set_return..........NOK 1 # Failed test 'set() returns self' # in t/17set_return.t at line 17. # got: '1882-05-31T22:01:42' # expected: '1882-05-31T22:01:42' Argument "1882-06-01T08:06:34" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/17set_return..........NOK 2 # Failed test 'set_time_zone() returns self' # in t/17set_return.t at line 20. # got: '1882-06-01T08:06:34' # expected: '1882-06-01T08:06:34' t/17set_return..........ok 3/7# Looks like you failed 2 tests of 7. t/17set_return..........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-2 Failed 2/7 tests, 71.43% okay t/18today...............ok t/19leap_second.........ok t/20infinite............ok t/21bad_params..........ok t/22from_doy............ok t/23storable............skipped all skipped: Cannot load Storable t/24from_object.........ok t/25add_subtract........ok t/26dt_leapsecond_pm....ok t/27delta...............ok t/28dow.................ok t/29overload............ok t/30future_tz...........ok t/31formatter...........skipped all skipped: DateTime::Format::Strptime 1.0400+ not installed t/32leap_second2........ok t/33seconds_offset......ok t/34set_tz..............ok t/35rd_values...........ok t/36invalid_local.......ok t/37local-add...........ok t/38local-subtract......ok 1/120Argument "2003-11-06T00:00:00" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/38local-subtract......NOK 5 # Failed test 'subtract_datetime is reversible from start point' # in t/38local-subtract.t at line 28. # got: '2003-11-06T00:00:00' # expected: '2003-11-06T00:00:00' Argument "2003-05-06T00:00:00" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/38local-subtract......NOK 6 # Failed test 'subtract_datetime is reversible from end point' # in t/38local-subtract.t at line 30. # got: '2003-05-06T00:00:00' # expected: '2003-05-06T00:00:00' t/38local-subtract......ok 90/120Argument "2003-10-26T01:00:00" isn't numeric in numeric eq (==) at /root/p5-DateTime/work/DateTime-0.31/blib/lib/DateTime.pm line 1434. t/38local-subtract......NOK 114 # Failed test 'subtraction is reversible' # in t/38local-subtract.t at line 376. # got: '2003-10-26T01:00:00' # expected: '2003-10-26T01:00:00' t/38local-subtract......ok 116/120# Looks like you failed 3 tests of 120. t/38local-subtract......dubious Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 5-6, 114 Failed 3/120 tests, 97.50% okay t/99-pod................ok 1/1 skipped: File::Find::Rule not installed Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/10subtract.t 2 512 105 2 100 104 t/17set_return.t 2 512 7 2 1-2 t/38local-subtract.t 3 768 120 3 5-6 114 2 tests and 1 subtest skipped. Failed 3/39 test scripts. 7/3088 subtests failed. Files=39, Tests=3088, 110 wallclock secs (37.24 cusr + 2.26 csys = 39.50 CPU)
This ticket is ancient, and I haven't seen a failure report like on cpantesters in ages, so I'm resolving it.