kadler / cpython

The Python programming language
https://www.python.org/
Other
2 stars 2 forks source link

Test failures in test_strptime #8

Open kadler opened 3 years ago

kadler commented 3 years ago
======================================================================
ERROR: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Jan 1 on Sunday] (date=(1905, 1, 1), format='%G %V %w')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 557, in test_helper
    strp_output = _strptime._strptime_time(strp_input,
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 562, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '1904 00 0' does not match format '%G %V %w'

======================================================================
ERROR: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Jan 1 on Sunday] (date=(1905, 1, 1), format='%G %V %u')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 557, in test_helper
    strp_output = _strptime._strptime_time(strp_input,
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 562, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '1904 00 7' does not match format '%G %V %u'

======================================================================
ERROR: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Jan 1 on Sunday] (date=(1905, 1, 1), format='%G %V %a')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 557, in test_helper
    strp_output = _strptime._strptime_time(strp_input,
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 562, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '1904 00 Sun' does not match format '%G %V %a'

======================================================================
ERROR: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Jan 1 on Sunday] (date=(1905, 1, 1), format='%G %V %A')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 557, in test_helper
    strp_output = _strptime._strptime_time(strp_input,
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 562, in _strptime_time
    tt = _strptime(data_string, format)[0]
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '1904 00 Sunday' does not match format '%G %V %A'

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday] (date=(1906, 12, 31), format='%G %V %w')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1905, 1, 2) != (1906, 12, 31)

First differing element 0:
1905
1906

- (1905, 1, 2)
?     ^     ^

+ (1906, 12, 31)
?     ^   +  ^^
 : '1905 01 1': 2 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday] (date=(1906, 12, 31), format='%G %V %u')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1905, 1, 2) != (1906, 12, 31)

First differing element 0:
1905
1906

- (1905, 1, 2)
?     ^     ^

+ (1906, 12, 31)
?     ^   +  ^^
 : '1905 01 1': 2 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday] (date=(1906, 12, 31), format='%G %V %a')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1905, 1, 2) != (1906, 12, 31)

First differing element 0:
1905
1906

- (1905, 1, 2)
?     ^     ^

+ (1906, 12, 31)
?     ^   +  ^^
 : '1905 01 Mon': 2 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday] (date=(1906, 12, 31), format='%G %V %A')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1905, 1, 2) != (1906, 12, 31)

First differing element 0:
1905
1906

- (1905, 1, 2)
?     ^     ^

+ (1906, 12, 31)
?     ^   +  ^^
 : '1905 01 Monday': 2 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Monday in the last week of the year] (date=(2008, 12, 29), format='%G %V %w')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (2007, 1, 1) != (2008, 12, 29)

First differing element 0:
2007
2008

- (2007, 1, 1)
?     ^     ^

+ (2008, 12, 29)
?     ^   +  ^^
 : '2007 01 1': 1 != 364

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Monday in the last week of the year] (date=(2008, 12, 29), format='%G %V %u')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (2007, 1, 1) != (2008, 12, 29)

First differing element 0:
2007
2008

- (2007, 1, 1)
?     ^     ^

+ (2008, 12, 29)
?     ^   +  ^^
 : '2007 01 1': 1 != 364

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Monday in the last week of the year] (date=(2008, 12, 29), format='%G %V %a')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (2007, 1, 1) != (2008, 12, 29)

First differing element 0:
2007
2008

- (2007, 1, 1)
?     ^     ^

+ (2008, 12, 29)
?     ^   +  ^^
 : '2007 01 Mon': 1 != 364

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Monday in the last week of the year] (date=(2008, 12, 29), format='%G %V %A')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (2007, 1, 1) != (2008, 12, 29)

First differing element 0:
2007
2008

- (2007, 1, 1)
?     ^     ^

+ (2008, 12, 29)
?     ^   +  ^^
 : '2007 01 Monday': 1 != 364

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday with year starting and ending on Monday] (date=(1917, 12, 31), format='%G %V %w')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1916, 1, 3) != (1917, 12, 31)

First differing element 0:
1916
1917

- (1916, 1, 3)
?     ^

+ (1917, 12, 31)
?     ^   +   +
 : '1916 01 1': 3 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday with year starting and ending on Monday] (date=(1917, 12, 31), format='%G %V %u')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1916, 1, 3) != (1917, 12, 31)

First differing element 0:
1916
1917

- (1916, 1, 3)
?     ^

+ (1917, 12, 31)
?     ^   +   +
 : '1916 01 1': 3 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday with year starting and ending on Monday] (date=(1917, 12, 31), format='%G %V %a')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1916, 1, 3) != (1917, 12, 31)

First differing element 0:
1916
1917

- (1916, 1, 3)
?     ^

+ (1917, 12, 31)
?     ^   +   +
 : '1916 01 Mon': 3 != 365

======================================================================
FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Dec 31 on Monday with year starting and ending on Monday] (date=(1917, 12, 31), format='%G %V %A')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_strptime.py", line 562, in test_helper
    self.assertEqual(strp_output[:3], ymd_tuple, msg)
AssertionError: Tuples differ: (1916, 1, 3) != (1917, 12, 31)

First differing element 0:
1916
1917

- (1916, 1, 3)
?     ^

+ (1917, 12, 31)
?     ^   +   +
 : '1916 01 Monday': 3 != 365

I'm guessing these need to be disabled like on AIX.