IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

test_strptime function of the (CPython) test_time.py test fails #533

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

OS: 32-bit Vista
Binaries: Debug
IP Version: latest TFS sources as of 11/20/2007

E:\External\Languages\IronPython20\25\Lib>ipyd test\test_time.py
test_asctime ( * main * .TimeTestCase) ... ok
test_clock ( * main * .TimeTestCase) ... ok
test_ctime_without_arg ( * main * .TimeTestCase) ... ok
test_data_attributes ( * main * .TimeTestCase) ... ok
test_gmtime_without_arg ( * main * .TimeTestCase) ... ok
test_insane_timestamps ( * main * .TimeTestCase) ... ok
test_localtime_without_arg ( * main * .TimeTestCase) ... ok
test_sleep ( * main * .TimeTestCase) ... ok
test_strftime ( * main * .TimeTestCase) ... ok
test_strftime_bounds_checking ( * main * .TimeTestCase) ... ok
test_strptime ( * main * .TimeTestCase) ... FAIL

test_tzset ( * main * .TimeTestCase) ... ok

FAIL: test_strptime ( * main * .TimeTestCase)

Traceback (most recent call last):
File "test\test_time.py", line 115, in test_strptime
self.fail('conversion specifier: %r failed.' % format)

AssertionError: conversion specifier: ' %w' failed.

Ran 12 tests in 1.831s
FAILED (failures=1)
Traceback (most recent call last):
File test\test_time.py, line 224, in Initialize
File test\test_time.py, line 220, in test_main
File test_support, line unknown, in run_unittest
File E:\External\Languages\IronPython20\25\Lib\test\test_support.py, line 457, in run_unittest
File E:\External\Languages\IronPython20\25\Lib\test\test_support.py, line 442, in run_suite
test.test_support.TestFailed: Traceback (most recent call last):
File "test\test_time.py", line 115, in test_strptime
self.fail('conversion specifier: %r failed.' % format)
AssertionError: conversion specifier: ' %w' failed.

E:\External\Languages\IronPython20\25\Lib>

Run CPython 2.5 test_time.py.

Work Item Details

Original CodePlex Issue: Issue 23712 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 27, 2009 at 11:23 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:12 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. Test: (CPy) test_time.py CreatedDate: 3/22/2007 NewInternalID: 409501 OldInternalID: 216719 AreaPath: IronPython\Modules\Time

ironpythonbot commented 9 years ago

On 2012-02-11 02:17:09 UTC, slide_o_mix commented:

Different errors now.

test_asctime (main.TimeTestCase) ... ok test_clock (main.TimeTestCase) ... ok test_conversions (main.TimeTestCase) ... ok test_ctime_without_arg (main.TimeTestCase) ... ok test_data_attributes (main.TimeTestCase) ... ok test_default_values_for_zero (main.TimeTestCase) ... ERROR test_gmtime_without_arg (main.TimeTestCase) ... ok test_insane_timestamps (main.TimeTestCase) ... ok test_localtime_without_arg (main.TimeTestCase) ... ok test_sleep (main.TimeTestCase) ... ok test_strftime (main.TimeTestCase) ... ok test_strftime_bounds_checking (main.TimeTestCase) ... ok test_strptime (main.TimeTestCase) ... FAIL test_tzset (main.TimeTestCase) ... ok ERROR: test_default_values_for_zero (main.TimeTestCase) Traceback (most recent call last): File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line

96, in test_default_values_for_zero result = time.strftime("%Y %m %d %H %M %S %w %j", (0,)*9) ValueError: Year, Month, and Day parameters describe an un-representable DateTime. FAIL: test_strptime (main.TimeTestCase) Traceback (most recent call last): File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line

111, in test_strptime self.fail("conversion specifier %r failed with '%s' input." % AssertionError: conversion specifier '%a' failed with 'Fri' input. Ran 14 tests in 1.470s

FAILED (failures=1, errors=1) Traceback (most recent call last): File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line

221, in File "C:\Users\acearl\Code\IronLanguagesMain\External.LCA_RESTRICTED\Languages\CPython\27\Lib\test\test_time.py", line

217, in test_main File "C:\Users\acearl\Applications\IronPython-2.7.1\Lib\test\test_support.py", line 1078, in run_unittest

File "C:\Users\acearl\Applications\IronPython-2.7.1\Lib\test\test_support.py", line 1061, in _run_suite