[New-bugs-announce] [issue22910] test_pydoc test_synopsis_sourceless is a flaky test

Gregory P. Smith report at bugs.python.org
Fri Nov 21 08:03:41 CET 2014


New submission from Gregory P. Smith:

When running a parallel make -j12 test, test_pydoc fails reasonably often with:

test test_pydoc failed -- Traceback (most recent call last):
  File "/.../Lib/test/test_pydoc.py", line 556, in test_synopsis_sourceless   
    synopsis = pydoc.synopsis(filename)
  File "/.../Lib/pydoc.py", line 240, in synopsis
    mtime = os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: '/.../Lib/__pycache__/os.cpython-34.pyc'

Two other issues mention this failure as being introduced recently in comments:
  http://bugs.python.org/issue20123 & http://bugs.python.org/issue20128

----------
assignee: gregory.p.smith
components: Tests
messages: 231465
nosy: eric.snow, gregory.p.smith, koobs
priority: normal
severity: normal
stage: needs patch
status: open
title: test_pydoc test_synopsis_sourceless is a flaky test
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22910>
_______________________________________


More information about the New-bugs-announce mailing list