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: Re-enable test_modules_search_builtin() in test_pydoc
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: eric.snow Nosy List: Arfrever, eric.snow, koobs, python-dev, serhiy.storchaka, vstinner
Priority: high Keywords:

Created on 2014-01-05 07:10 by eric.snow, last changed 2022-04-11 14:57 by admin.

Messages (11)
msg207353 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2014-01-05 07:10
The test (added in issue #20123) broke one of the stable FreeBSD buildbots:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6102

The log for that test run indicates the traceback and the test can be found in Lib/test/test_pydoc.py (PydocImportTest.test_modules_search_builtin).

The problem could be one (or more) of several possibilities:

* the test is broken in an esoteric way
* the buildbot has issues
* the platform has issues
* the test exposes some other underlying bug elsewhere

The test itself is not critical but I hope to re-enable it before beta 2 ends in a couple weeks.

Stefan: any insight you could offer on the problem, particularly relative to the platform and buildbot, would be greatly appreciated.
msg207369 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2014-01-05 10:27
The buildbot runs --without-doc-strings. Usually you just have to add the
@requires_docstrings decorator to some tests.
msg211952 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-02-22 21:02
New changeset 13edfab6c3c0 by Eric Snow in branch 'default':
Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc.
http://hg.python.org/cpython/rev/13edfab6c3c0
msg211954 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2014-02-22 21:04
The other two test_modules* tests in test_pydoc are also having issues and I've likewise disabled them (see issue20484).  They'll need to be investigated and re-enabled too.
msg213824 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-17 06:31
New changeset 7cfb3db36ec6 by Eric Snow in branch '3.4':
Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc.
http://hg.python.org/cpython/rev/7cfb3db36ec6
msg215998 - (view) Author: Kubilay Kocak (koobs) (Python triager) Date: 2014-04-13 06:48
test_synopsis_sourceless is also failing on koobs-freebsd9 (3.4) and has been for a while. Failing test inlined here, for full buildlog, see msg215997 in #20123

======================================================================
ERROR: test_synopsis_sourceless (test.test_pydoc.PydocDocTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.4.koobs-freebsd9/build/Lib/test/test_pydoc.py", line 504, in test_synopsis_sourceless
    synopsis = pydoc.synopsis(filename)
  File "/usr/home/buildbot/python/3.4.koobs-freebsd9/build/Lib/pydoc.py", line 238, in synopsis
    mtime = os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: '/usr/home/buildbot/python/3.4.koobs-freebsd9/build/Lib/__pycache__/os.cpython-34.pyc'
msg220358 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-06-12 15:07
Many test_pydoc tests are failing on the FreeBSD 9 buildbot, example:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6870/steps/test/logs/stdio

======================================================================
FAIL: test_html_doc (test.test_pydoc.PydocDocTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_pydoc.py", line 418, in test_html_doc
    self.fail("outputs are not equal, see diff above")
AssertionError: outputs are not equal, see diff above

======================================================================
FAIL: test_text_doc (test.test_pydoc.PydocDocTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_pydoc.py", line 432, in test_text_doc
    self.fail("outputs are not equal, see diff above")
AssertionError: outputs are not equal, see diff above
msg236920 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-02-28 22:24
Whilst testing #19980 I noticed that three tests are still skipped.
msg236953 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-01 10:10
I don't know what errors was on FreeBSD (logs are no longer available), but these tests modify sys.path and the list of weakrefs to logging handlers. They also require relative long time to run.
msg236955 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-01 11:14
As said koobs, the full log was attached to issue20123.
msg236963 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-01 13:35
With test_synopsis_sourceless and test_non_ascii there were different issues, related to -OO. Fixed in changesets 663a83c1d42d, d7b3e722152d, 94edd0ef4c2a.
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64327
2021-12-12 00:39:32iritkatrielsetversions: + Python 3.9, Python 3.10, Python 3.11, - Python 3.4
2019-03-15 22:40:17BreamoreBoysetnosy: - BreamoreBoy
2015-03-01 13:35:26serhiy.storchakasetmessages: + msg236963
2015-03-01 11:14:58serhiy.storchakasetmessages: + msg236955
2015-03-01 10:10:54serhiy.storchakasetmessages: + msg236953
2015-02-28 23:24:36serhiy.storchakasetnosy: + serhiy.storchaka
2015-02-28 22:24:49BreamoreBoysetnosy: + BreamoreBoy
messages: + msg236920
2014-06-12 15:07:30vstinnersetmessages: + msg220358
2014-06-12 15:07:07vstinnersetnosy: + vstinner
2014-05-14 16:01:15skrahsetnosy: - skrah
2014-04-13 06:48:33koobssetmessages: + msg215998
2014-04-12 15:29:31koobssetnosy: + koobs
2014-03-17 06:31:03python-devsetmessages: + msg213824
2014-02-23 00:00:43Arfreversetnosy: + Arfrever
2014-02-22 21:04:38eric.snowsetmessages: + msg211954
2014-02-22 21:02:43python-devsetnosy: + python-dev
messages: + msg211952
2014-01-05 10:27:48skrahsetmessages: + msg207369
2014-01-05 07:10:27eric.snowcreate