Using run-of-the-mill unittest, trunk has a failure, if I have time I'll take a look at it to get things clean before proceeding with work on this branch.
======================================================================
ERROR: test_read_detect_rfc822 (oops_datedir_repo.tests.test_serializer.TestParsing)
oops_datedir_repo.tests.test_serializer.TestParsing.test_read_detect_rfc822
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "oops_datedir_repo/tests/test_serializer.py", line 63, in test_read_detect_rfc822
self.assertEqual(self.expected_dict, read(source_file))
File "oops_datedir_repo/serializer.py", line 61, in read
return serializer_bson.read(StringIO(content))
File "oops_datedir_repo/serializer_bson.py", line 57, in read
report = bson.loads(fp.read())
File "/home/codersquid/work/hexr/python-oops-datedir-repo/venv/local/lib/python2.7/site-packages/bson/__init__.py", line 47, in loads
return decode_document(data, 0)[1]
File "/home/codersquid/work/hexr/python-oops-datedir-repo/venv/local/lib/python2.7/site-packages/bson/codec.py", line 269, in decode_document
if data[end_point - 1] not in ('\0', 0):
IndexError: string index out of range
Using run-of-the-mill unittest, trunk has a failure, if I have time I'll take a look at it to get things clean before proceeding with work on this branch.
virtualenv venv
. venv/bin/activate
pip install -e .\[test\]
venv/bin/python -m unittest discover -v
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= detect_ rfc822 (oops_datedir_ repo.tests. test_serializer .TestParsing) repo.tests. test_serializer .TestParsing. test_read_ detect_ rfc822 ------- ------- ------- ------- ------- ------- ------- ------- ------- repo/tests/ test_serializer .py", line 63, in test_read_ detect_ rfc822 assertEqual( self.expected_ dict, read(source_file)) repo/serializer .py", line 61, in read bson.read( StringIO( content) ) repo/serializer _bson.py" , line 57, in read fp.read( )) codersquid/ work/hexr/ python-oops-datedir-repo/venv/ local/lib/ python2. 7/site- packages/ bson/__ init__. py", line 47, in loads document( data, 0)[1] codersquid/ work/hexr/ python-oops-datedir-repo/venv/ local/lib/ python2. 7/site- packages/ bson/codec. py", line 269, in decode_document
ERROR: test_read_
oops_datedir_
-------
_StringException: Traceback (most recent call last):
File "oops_datedir_
self.
File "oops_datedir_
return serializer_
File "oops_datedir_
report = bson.loads(
File "/home/
return decode_
File "/home/
if data[end_point - 1] not in ('\0', 0):
IndexError: string index out of range