#462: BibAuthorID: fix unit tests
-------------------------+--------------------------------------------------
Reporter: simko | Owner: scarli
Type: defect | Status: new
Priority: blocker | Milestone: v1.0
Component: BibAuthorID | Version:
Keywords: |
-------------------------+--------------------------------------------------
BibAuthorID unit tests should be fixed for Python-2.4, see e.g. build:84:
{{{
bibauthorid - test split name parts ... ERROR
bibauthorid - test create unified name ... ERROR
bibauthorid - test create normalized name ... ERROR
bibauthorid - test crean name string ... ok
bibauthorid - test compare names ... ERROR
[...]
======================================================================
ERROR: bibauthorid - test split name parts
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/invenio/lib/python/invenio/bibauthorid_tests.py", line 33, in
test_split_name_parts
baidu.split_name_parts('This, Isacorrect Fullname'))
File "/usr/lib64/python2.4/site-packages/invenio/bibauthorid_utils.py",
line 70, in split_name_parts
surname, rest_of_name = name_string.partition(sep)[0::2]
AttributeError: 'str' object has no attribute 'partition'
}}}
--
Ticket URL: <http://invenio-software.org/ticket/462>
Invenio <http://invenio-software.org>