Message370618
While debugging issues with the black test suite in Python 3.9, I found one which black upstream says is a Cpython issue, so I'm filing it here.
Reproduction is very easy. Just use this four-line tester:
print("hello, world")
\
print("hello, world 2")
with that saved as `test.py`, check the results:
<mock-chroot> sh-5.0# PYTHONOLDPARSER=1 python3 test.py
hello, world
hello, world 2
<mock-chroot> sh-5.0# python3 test.py
File "/builddir/build/BUILD/black-19.10b0/test.py", line 3
^
SyntaxError: invalid syntax
The reason black has this test (well, a similar test - in black's test, the file *starts* with the backslash then the empty line, but the result is the same) is covered in https://github.com/psf/black/issues/922 and https://github.com/psf/black/pull/948 . |
|
Date |
User |
Action |
Args |
2020-06-02 19:03:34 | adamwill | set | recipients:
+ adamwill |
2020-06-02 19:03:34 | adamwill | set | messageid: <1591124614.71.0.196427498662.issue40847@roundup.psfhosted.org> |
2020-06-02 19:03:34 | adamwill | link | issue40847 messages |
2020-06-02 19:03:34 | adamwill | create | |
|