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_listcomps fails when run directly
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: serhiy.storchaka, terry.reedy
Priority: normal Keywords:

Created on 2017-07-25 12:17 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 2939 merged ZackerySpytz, 2017-07-29 00:38
PR 2945 merged terry.reedy, 2017-07-29 16:07
Messages (4)
msg299057 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-07-25 12:17
$ ./python Lib/test/test_listcomps.py 
doctest (test.test_listcomps) ... 33 tests with zero failures
Traceback (most recent call last):
  File "Lib/test/test_listcomps.py", line 148, in <module>
    test_main(verbose=True)
  File "Lib/test/test_listcomps.py", line 142, in test_main
    support.run_doctest(test_genexps, verbose)
NameError: name 'test_genexps' is not defined
msg299443 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-29 00:17
On Windows, fresh 3.7, python -m test.test_listcomps fails same way.
python -m test test_listcomps is okay.
msg299474 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-29 16:05
New changeset ceb93f4540981e3f9af66bd936920186aba813fc by Terry Jan Reedy (Zackery Spytz) in branch 'master':
bpo-31027: Fix test_listcomps failure when run directly (#2939)
https://github.com/python/cpython/commit/ceb93f4540981e3f9af66bd936920186aba813fc
msg299482 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-29 18:38
New changeset b26cc82b2252dd54e73661a026b32e7808fef945 by Terry Jan Reedy in branch '3.6':
[3.6] bpo-31027: Fix test_listcomps failure when run directly (GH-2939) (#2945)
https://github.com/python/cpython/commit/b26cc82b2252dd54e73661a026b32e7808fef945
History
Date User Action Args
2022-04-11 14:58:49adminsetgithub: 75210
2017-07-29 18:39:40terry.reedysetstatus: open -> closed
assignee: terry.reedy
resolution: fixed
stage: resolved
2017-07-29 18:38:27terry.reedysetmessages: + msg299482
2017-07-29 16:07:50terry.reedysetpull_requests: + pull_request2994
2017-07-29 16:05:57terry.reedysetmessages: + msg299474
2017-07-29 00:38:23ZackerySpytzsetpull_requests: + pull_request2991
2017-07-29 00:17:14terry.reedysetnosy: + terry.reedy
messages: + msg299443
2017-07-25 12:17:21serhiy.storchakacreate