New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

$ ./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

----------
assignee: serhiy.storchaka
components: Tests
messages: 322112
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Lib/test/test_contextlib_async.py failed when run as a script
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34183>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to