Issue 22910: test_pydoc test_synopsis_sourceless is a flaky test (original) (raw)
Issue22910
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/67099
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) * ![]() |
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) * ![]() |
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) * ![]() |
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:10 | admin | set | github: 67099 |
2021-12-07 18:02:31 | gregory.p.smith | set | status: open -> closedresolution: out of datestage: needs patch -> resolved |
2021-12-07 15:09:27 | iritkatriel | set | nosy: + iritkatrielmessages: + |
2014-11-21 09:33:49 | gregory.p.smith | set | messages: + |
2014-11-21 09:31:03 | gregory.p.smith | set | assignee: gregory.p.smith -> |
2014-11-21 07:03:41 | gregory.p.smith | create |