[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2014-11-21 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
assignee: gregory.p.smith - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22910
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2014-11-21 Thread Gregory P. Smith

Gregory P. Smith added the comment:

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22910
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2014-11-20 Thread Gregory P. Smith

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 rep...@bugs.python.org
http://bugs.python.org/issue22910
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com