Hello,

I am installing Invenio 1.1.1 based SLC 5.11, python 2.4.3 . When I run 
unit-test, It show me the errors below and the test stopped

sudo -u apache /opt/invenio/bin/inveniocfg --run-unit-tests
Tests the creation of a method ... ok

======================================================================
FAIL: bibformat - correct formatting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/invenio/lib/python/invenio/bibformat_engine_unit_tests.py", line 
761, in test_format_record
    self.assertEqual(result,'''<h1>hi</h1> this is my 
template\ntest<bfe_non_existing_element must disappear/><test_1  non prefixed 
element must stay as any normal tag/>tfrgarbage\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a default 
valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n''')
AssertionError: '<h1>hi</h1> this is my template\ntest<bfe_non_existing_element 
must disappear/><test_1  non prefixed element must stay as any normal 
tag/>tengarbage\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default 
valueeditor\n<br/>test me!<b>ok</b>a default valueeditor\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n' != '<h1>hi</h1> this is my 
template\ntest<bfe_non_existing_element must disappear/><test_1  non prefixed 
element must stay as any normal tag/>tfrgarbage\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a default 
valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n'

======================================================================
FAIL: bibformat - correct formatting with given template
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/invenio/lib/python/invenio/bibformat_engine_unit_tests.py", line 
792, in test_format_with_format_template
    self.assertEqual(result,'''<h1>hi</h1> this is my 
template\ntest<bfe_non_existing_element must disappear/><test_1  non prefixed 
element must stay as any normal tag/>tfrgarbage\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a default 
valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n99999''')
AssertionError: '<h1>hi</h1> this is my template\ntest<bfe_non_existing_element 
must disappear/><test_1  non prefixed element must stay as any normal 
tag/>tengarbage\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default 
valueeditor\n<br/>test me!<b>ok</b>a default valueeditor\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n99999' != '<h1>hi</h1> this is 
my template\ntest<bfe_non_existing_element must disappear/><test_1  non 
prefixed element must stay as any normal tag/>tfrgarbage\n<br/>test 
me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n<br/>test me!<b>ok</b>a default 
valueeditor\n<br/>test me!&lt;b&gt;ok&lt;/b&gt;a default valueeditor\n99999'

----------------------------------------------------------------------
Ran 609 tests in 116.497s

FAILED (failures=2)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1332, in shutdown
    h.flush()
  File "/usr/lib64/python2.4/logging/__init__.py", line 718, in flush
    self.stream.flush()
  File "/usr/lib64/python2.4/StringIO.py", line 257, in flush
    _complain_ifclosed(self.closed)
  File "/usr/lib64/python2.4/StringIO.py", line 40, in _complain_ifclosed
    raise ValueError, "I/O operation on closed file"
ValueError: I/O operation on closed file
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.4/logging/__init__.py", line 1332, in shutdown
    h.flush()
  File "/usr/lib64/python2.4/logging/__init__.py", line 718, in flush
    self.stream.flush()
  File "/usr/lib64/python2.4/StringIO.py", line 257, in flush
    _complain_ifclosed(self.closed)
  File "/usr/lib64/python2.4/StringIO.py", line 40, in _complain_ifclosed
    raise ValueError, "I/O operation on closed file"
ValueError: I/O operation on closed file


I do not understand the error. What is wrong? Does it seem that my Invenio 
functions have problem ?  Can this error be ignored?

Thanks a lot,
Best regards
Lanxin

Reply via email to