summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools/test_unparse.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38870: Expose a function to unparse an ast object in the ast module ↵Pablo Galindo2019-11-241-318/+0
| | | | | | | (GH-17302) Add ast.unparse() as a function in the ast module that can be used to unparse an ast.AST object and produce a string with code that would produce an equivalent ast.AST object when parsed.
* bpo-37053: handle strings like u"bar" correctly in Tools/parser/unparse.py ↵Chih-Hsuan Yen2019-05-261-0/+5
| | | | | | | | | | | | (GH-13583) Constant.kind is added in https://bugs.python.org/issue36280. Current possible values for Constant.kind are "u" or None. For r'bar' and b'bar', Constant.kind value is None, so there's no need for special handling. https://bugs.python.org/issue37053
* bpo-31174: Improve the code of test_tools.test_unparse. (#4146)Serhiy Storchaka2017-10-271-8/+8
|
* bpo-31174: Fix test_tools.test_unparse (#4102)Victor Stinner2017-10-241-2/+13
| | | | | test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
* Issue 27948: Allow backslashes in the literal string portion of f-strings, ↵Eric V. Smith2016-09-101-5/+5
| | | | but not in the expressions. Also, require expressions to begin and end with literal curly braces.
* tests: use subTest in test_unparse.test_filesYury Selivanov2016-09-091-2/+3
|
* fix skipping #27921 for windowsBenjamin Peterson2016-09-051-2/+1
|
* Issue 27921: Remove backslash from another f-string. I'll revert this change ↵Eric V. Smith2016-09-031-0/+10
| | | | before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.
* Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a ↵Eric V. Smith2016-09-031-4/+0
| | | | temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts.
* Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-0/+5
|\ | | | | | | Patch by Guo Ci Teo.
| * Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-0/+5
| | | | | | | | Patch by Guo Ci Teo.
* | Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.Eric V. Smith2015-09-201-2/+9
| |
* | Temporary hack for issue #25180: exclude test_fstring.py from the unparse ↵Eric V. Smith2015-09-191-0/+2
|/ | | | round-tripping, while I figure out how to properly fix it.
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-161-0/+282