2012-01-22 03:20:56 |
Duncan McGreggor |
description |
I'm getting tons of errors when I run the test suite with trial in Python 2.7:
FAILED (skips=3, failures=24, errors=18, successes=381)
More of them seem to be generated due to this error:
initial_value must be unicode or None, not str
Here's a sample traceback:
[ERROR]
Traceback (most recent call last):
File "/Users/oubiwann/lab/txaws/trunk/txaws/s3/client.py", line 99, in _parse_list_buckets
date_time = parseTime(date_text)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 698, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 302, in parse
res = self._parse(timestr, **kwargs)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 350, in _parse
l = _timelex.split(timestr)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 144, in split
return list(cls(s))
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 44, in __init__
instream = StringIO(instream)
exceptions.TypeError: initial_value must be unicode or None, not str
txaws.s3.tests.test_client.S3ClientTestCase.test_list_buckets |
This ticket was originally titled "unicode/str errors in dateutil" but has been renamed to better match the fix.
I'm getting tons of errors when I run the test suite with trial in Python 2.7:
FAILED (skips=3, failures=24, errors=18, successes=381)
More of them seem to be generated due to this error:
initial_value must be unicode or None, not str
Here's a sample traceback:
[ERROR]
Traceback (most recent call last):
File "/Users/oubiwann/lab/txaws/trunk/txaws/s3/client.py", line 99, in _parse_list_buckets
date_time = parseTime(date_text)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 698, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 302, in parse
res = self._parse(timestr, **kwargs)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 350, in _parse
l = _timelex.split(timestr)
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 144, in split
return list(cls(s))
File "/sw/lib/python2.7/site-packages/python_dateutil-2.0-py2.7.egg/dateutil/parser.py", line 44, in __init__
instream = StringIO(instream)
exceptions.TypeError: initial_value must be unicode or None, not str
txaws.s3.tests.test_client.S3ClientTestCase.test_list_buckets |
|