classification
Title: Lib/test/test_contextlib_async.py failed when ran as a script
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-07-21 17:40 by serhiy.storchaka, last changed 2018-07-23 22:05 by serhiy.storchaka. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8381 merged serhiy.storchaka, 2018-07-21 17:43
PR 8422 merged miss-islington, 2018-07-23 20:39
Messages (3)
msg322112 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-21 17:40
$ ./python Lib/test/test_contextlib_async.py
Lib/test/test_contextlib_async.py:7: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  from .test_contextlib import TestBaseExitStack
Traceback (most recent call last):
  File "Lib/test/test_contextlib_async.py", line 7, in <module>
    from .test_contextlib import TestBaseExitStack
ModuleNotFoundError: No module named '__main__.test_contextlib'; '__main__' is not a package
msg322255 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-23 20:38
New changeset db8e3a1e4476620b2b5aaf57acfc3ef58a08213b by Serhiy Storchaka in branch 'master':
bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381)
https://github.com/python/cpython/commit/db8e3a1e4476620b2b5aaf57acfc3ef58a08213b
msg322269 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-23 22:02
New changeset 519fc551d7778ac698033846bb052a12b7d491e2 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7':
bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381) (GH-8422)
https://github.com/python/cpython/commit/519fc551d7778ac698033846bb052a12b7d491e2
History
Date User Action Args
2018-07-23 22:05:43serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-07-23 22:02:03serhiy.storchakasetmessages: + msg322269
2018-07-23 20:39:05miss-islingtonsetpull_requests: + pull_request7948
2018-07-23 20:38:33serhiy.storchakasetmessages: + msg322255
2018-07-21 17:49:37serhiy.storchakasettitle: Lib/test/test_contextlib_async.py failed when run as a script -> Lib/test/test_contextlib_async.py failed when ran as a script
2018-07-21 17:43:58serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request7911
2018-07-21 17:40:37serhiy.storchakacreate