Message366841
> Is there an update of this *release blocker* issue? Should we revert the commit 9052f7a41b90f2d34011c8da68f9a4facebc8a97?
I dont think we can gain much by reverting 9052f7a41b90f2d34011c8da68f9a4facebc8a97 because it doesn't introduce a new issue, it just adds "another" path to notice it.
Test:
>>> await __import__('asyncio').sleep(1)
Expected (and the behavior of 3.6):
(.venv) [ 6:09PM ] [ isidentical@threeheadedgiant:~ ]
$ python3.6 z.py
**********************************************************************
File "doctest.txt", line 4, in doctest.txt
Failed example:
await __import__('asyncio').sleep(1)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.6/doctest.py", line 1330, in __run
compileflags, 1), test.globs)
File "<doctest doctest.txt[0]>", line 1
await __import__('asyncio').sleep(1)
^
SyntaxError: invalid syntax
**********************************************************************
1 items had failures:
1 of 1 in doctest.txt
***Test Failed*** 1 failures.
result: TestResults(failed=1, attempted=1
Current master (+ reverted GH 18968):
(.venv) [ 6:09PM ] [ isidentical@threeheadedgiant:~ ]
$ ./cpython/python z.py
/home/isidentical/cpython/Lib/doctest.py:1336: RuntimeWarning: coroutine '<module>' was never awaited
exec(compile(example.source, filename, "single",
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
result: TestResults(failed=0, attempted=1) |
|
Date |
User |
Action |
Args |
2020-04-20 15:13:30 | BTaskaya | set | recipients:
+ BTaskaya, vstinner, asvetlov, lukasz.langa, serhiy.storchaka, yselivanov, pablogsal, miss-islington, jack1142 |
2020-04-20 15:13:30 | BTaskaya | set | messageid: <1587395610.42.0.798276650079.issue39562@roundup.psfhosted.org> |
2020-04-20 15:13:30 | BTaskaya | link | issue39562 messages |
2020-04-20 15:13:30 | BTaskaya | create | |
|