prettier/plugin-python

Test failures running with python3 < 3.6

Opened this issue · 0 comments

Currently the test suite covers several python3 language features that did not exist pre-3.6. So running yarn test on a system with python 3.4, for example, you get several tests failing from parse errors. Perhaps we should add an explicit version check before parsing and log a warning or throw an error? plugin-swift does this: https://github.com/prettier/plugin-swift/blob/master/src/parser/wrapper.js.