You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-12-07.18:02:31.070>created_at=<Date2014-11-21.07:03:41.765>labels= ['type-bug', 'tests']
title='test_pydoc test_synopsis_sourceless is a flaky test'updated_at=<Date2021-12-07.18:02:31.069>user='https://github.com/gpshead'
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'
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.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: