This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_hotshot fails on solaris
Type: compile error Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Solaris buildbot failure on trunk in test_hostshot
View: 4698
Assigned To: Nosy List: csernazs, pitrou
Priority: normal Keywords:

Created on 2009-10-28 14:06 by csernazs, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg94628 - (view) Author: Zsolt Cserna (csernazs) * Date: 2009-10-28 14:06
On sparc/solaris 5.8, test_hotshot fails:

csernazs@localhost:/tmp/python2.6$ LD_LIBRARY_PATH=/tmp/python2.6
./python -E -tt ./Lib/test/regrtest.py -v -l test_hotshot

test_hotshot
test_addinfo (test.test_hotshot.HotShotTestCase) ... ok
test_bad_sys_path (test.test_hotshot.HotShotTestCase) ... ok
test_line_numbers (test.test_hotshot.HotShotTestCase) ... ok
test_logreader_eof_error (test.test_hotshot.HotShotTestCase) ... FAIL
test_start_stop (test.test_hotshot.HotShotTestCase) ... ok

======================================================================
FAIL: test_logreader_eof_error (test.test_hotshot.HotShotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/python2.6/Lib/test/test_hotshot.py", line 130, in
test_logreader_eof_error
    self.assertRaises((IOError, EOFError), _hotshot.logreader, ".")
AssertionError: (<type 'exceptions.IOError'>, <type
'exceptions.EOFError'>) not raised

----------------------------------------------------------------------
Ran 5 tests in 0.037s

FAILED (failures=1)
test test_hotshot failed -- Traceback (most recent call last):
  File "/tmp/python2.6/Lib/test/test_hotshot.py", line 130, in
test_logreader_eof_error
    self.assertRaises((IOError, EOFError), _hotshot.logreader, ".")
AssertionError: (<type 'exceptions.IOError'>, <type
'exceptions.EOFError'>) not raised

1 test failed:
    test_hotshot

From test_hotshot.py:

    def test_logreader_eof_error(self):
        self.assertRaises((IOError, EOFError), _hotshot.logreader, ".")
        gc.collect()

If I run python command-line interpreter, it doesn't raise exception:

>>> import _hotshot
>>> _hotshot.logreader(".")
<_hotshot.LogReaderType object at 0x3f260>
>>> 

On intel/linux, this test passes.
msg94726 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-10-30 21:12
Duplicate of #4698.
History
Date User Action Args
2022-04-11 14:56:54adminsetgithub: 51479
2009-10-30 21:12:51pitrousetstatus: open -> closed

nosy: + pitrou
messages: + msg94726

superseder: Solaris buildbot failure on trunk in test_hostshot
resolution: duplicate
2009-10-28 14:06:06csernazscreate