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_pydoc test_synopsis_sourceless is a flaky test
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: eric.snow, gregory.p.smith, iritkatriel, koobs
Priority: normal Keywords:

Created on 2014-11-21 07:03 by gregory.p.smith, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg231465 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2014-11-21 07:03
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
msg231469 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2014-11-21 09:33
I suspect flakiness is due to parallel test execution.  Is some other test possibly executing at the same time removing __pycache__ directories or .pyc files to recreate them (test_compileall?)?  If the test were adjusted to point to a .py file of its own that it generates in a temporary directory that would avoid that.
msg407937 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-12-07 15:09
Shall we close this? It's pretty old and if the test is still flaky it will let us know.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67099
2021-12-07 18:02:31gregory.p.smithsetstatus: open -> closed
resolution: out of date
stage: needs patch -> resolved
2021-12-07 15:09:27iritkatrielsetnosy: + iritkatriel
messages: + msg407937
2014-11-21 09:33:49gregory.p.smithsetmessages: + msg231469
2014-11-21 09:31:03gregory.p.smithsetassignee: gregory.p.smith ->
2014-11-21 07:03:41gregory.p.smithcreate