Issue 31027: test_listcomps fails when run directly (original) (raw)

Issue31027

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 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:49 admin set github: 75210
2017-07-29 18:39:40 terry.reedy set status: open -> closedassignee: terry.reedyresolution: fixedstage: resolved
2017-07-29 18:38:27 terry.reedy set messages: +
2017-07-29 16:07:50 terry.reedy set pull_requests: + <pull%5Frequest2994>
2017-07-29 16:05:57 terry.reedy set messages: +
2017-07-29 00:38:23 ZackerySpytz set pull_requests: + <pull%5Frequest2991>
2017-07-29 00:17:14 terry.reedy set nosy: + terry.reedymessages: +
2017-07-25 12:17:21 serhiy.storchaka create