[issue8963] test_urllibnet failure
Antoine Pitrou
report at bugs.python.org
Thu Jun 10 22:20:21 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
The patch is not sufficient, since other failures can then occur if test_strptime gets run after test_urllibnet:
======================================================================
ERROR: test_twelve_noon_midnight (test.test_strptime.Strptime12AMPMTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoine/py3k/debug/Lib/test/test_strptime.py", line 389, in test_twelve_noon_midnight
eq(time.strptime('12 PM', '%I %p')[3], 12)
File "/home/antoine/py3k/debug/Lib/_strptime.py", line 461, in _strptime_time
return _strptime(data_string, format)[0]
File "/home/antoine/py3k/debug/Lib/_strptime.py", line 335, in _strptime
data_string[found.end():])
ValueError: unconverted data remains: PM
======================================================================
FAIL: test_pattern (test.test_strptime.TimeRETests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoine/py3k/debug/Lib/test/test_strptime.py", line 124, in test_pattern
pattern_string)
AssertionError: did not find abbreviated weekday in pattern string '(?P<a>lun\.|mar\.|mer\.|jeu\.|ven\.|sam\.|dim\.)\s+(?P<A>mercredi|vendredi|dimanche|samedi|lundi|mardi|jeudi)\s+(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])'
======================================================================
FAIL: test_hour (test.test_strptime.StrptimeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoine/py3k/debug/Lib/test/test_strptime.py", line 266, in test_hour
(strf_output, strp_output[3], self.time_tuple[3]))
AssertionError: testing of '%I %p' directive failed; '08 ' -> 8 != 20
----------------------------------------------------------------------
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8963>
_______________________________________
More information about the Python-bugs-list
mailing list