Matthias Bussonnier <bussonniermatth...@gmail.com> added the comment:
I thought it was comparing the AST of the file to the AST of the unparsed AST. So it's actually checking if parse(unparse(x)) is indempotent and not wether parse(unparse(x)) is indempotent. So x={x!r} should be fine. On Wed, May 22, 2019, 09:22 Pablo Galindo Salgado <rep...@bugs.python.org> wrote: > > Pablo Galindo Salgado <pablog...@gmail.com> added the comment: > > Notice that test_tools will fail if f'{x=}' becomes f'x={x!r}' when > unparsed as it compares the text of the file and the text of the roundtrip > of the ast of the file > > ---------- > nosy: +pablogsal > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue37003> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37003> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com