summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.Serhiy Storchaka2016-06-121-1/+1
| | | | Patch by Demur Rumed.
* Issue #27030: Merge RE fix from 3.5Martin Panter2016-06-121-2/+3
|\
| * Fix buggy RE “\parrot_example.py”, uncovered by Issue #27030Martin Panter2016-06-121-2/+3
| |
* | Merge with 3.5Terry Jan Reedy2016-05-061-2/+2
|\ \ | |/
| * Issue 26911: fix import (other problems remain).Terry Jan Reedy2016-05-061-2/+2
| |
* | Remove more unused imports in tests.Serhiy Storchaka2016-04-241-2/+0
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-245-10/+2
| |
* | Issue #23277: Remove more unused sys and os imports.Serhiy Storchaka2016-04-243-5/+0
| |
* | Merge 3.5 (Issue #24619)Yury Selivanov2015-07-231-0/+22
|\ \ | |/
| * Issue #24619: Simplify async/await tokenization.Yury Selivanov2015-07-231-0/+22
| | | | | | | | | | | | | | | | | | | | This commit simplifies async/await tokenization in tokenizer.c, tokenize.py & lib2to3/tokenize.py. Previous solution was to keep a stack of async-def & def blocks, whereas the new approach is just to remember position of the outermost async-def block. This change won't bring any parsing performance improvements, but it makes the code much easier to read and validate.
* | Issue #13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond.Robert Collins2015-07-221-0/+4
|/
* PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-1/+31
|
* Issue #22173: Update lib2to3 tests to use unittest test discovery.Zachary Ware2014-10-294-18/+14
|
* Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
| | | | Patch by Févry Thibault.
* teach 2to3 about 'yield from'Benjamin Peterson2014-04-101-0/+7
|
* add matrix multiplication operator support to 2to3Benjamin Peterson2014-04-101-0/+6
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | #10712: 2to3 has a new "asserts" fixer that replaces deprecated names of ↵Ezio Melotti2013-11-231-0/+50
| | | | | | | | unittest methods.
* | Issue #19592: Use specific asserts in lib2to3 tests.Serhiy Storchaka2013-11-145-17/+17
|\ \ | |/
| * Issue #19592: Use specific asserts in lib2to3 tests.Serhiy Storchaka2013-11-145-17/+17
| |
* | Issue #18037: Do not escape '\u' and '\U' in raw strings.Serhiy Storchaka2013-10-081-1/+1
|\ \ | |/
| * Issue #18037: Do not escape '\u' and '\U' in raw strings.Serhiy Storchaka2013-10-081-1/+1
| |
* | Issue #18037: 2to3 now escapes '\u' and '\U' in native strings.Serhiy Storchaka2013-10-031-0/+37
|\ \ | |/
| * Issue #18037: 2to3 now escapes '\u' and '\U' in native strings.Serhiy Storchaka2013-10-031-0/+37
| |
* | merge 3.3 (#19115)Benjamin Peterson2013-09-281-5/+5
|\ \ | |/
| * fix duplicate test names (closes #19115)Benjamin Peterson2013-09-281-5/+5
| | | | | | | | Patch by Xavier de Gaye.
* | Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py scriptSerhiy Storchaka2013-09-162-0/+6
|\ \ | |/ | | | | now detect Python source code encoding only in comment lines.
| * Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py scriptSerhiy Storchaka2013-09-162-0/+6
| | | | | | | | now detect Python source code encoding only in comment lines.
* | #18741: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-1/+1
| |
* | add fixer for reload() -> imp.reload() (closes #11797)\n\nPatch by Laurie ↵Benjamin Peterson2012-12-081-0/+59
|/ | | | Clark-Michalek and Berker Peksag
* merge 3.2 (#16573)Benjamin Peterson2012-11-291-0/+12
|\
| * enumerate only requires an iterable (closes #16573)Benjamin Peterson2012-11-291-0/+12
| | | | | | | | Patch by Jonathan Kotta.
* | remove get_prefix and set_prefix (#13248)Benjamin Peterson2012-03-141-17/+0
|/
* Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.Antoine Pitrou2012-02-271-3/+10
| | | | Patch by Mikhail Novikov.
* Fix use of deprecated assertRegexpMatches method.Georg Brandl2012-02-201-1/+1
|
* import re for the previous commit.Gregory P. Smith2012-02-141-0/+1
|
* re.escape os.sep so that \ is interpreted properly in the regex.Gregory P. Smith2012-02-141-2/+3
|
* Issue #13930: fix a / to use os.sep so that the test works on Windows.Gregory P. Smith2012-02-141-2/+4
|
* Issue #13930: Adds ability for 2to3 to write its output to a differentGregory P. Smith2012-02-122-4/+130
| | | | | | | | | directory tree instead of overwriting the input files. Adds three command line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix. Feature backports into stable release branches for 2to3 are allowed by a special exemption: http://mail.python.org/pipermail/python-dev/2011-December/115089.html
* - Issue #11250: Back port fix from 3.3 branch, so that 2to3 can handle filesBarry Warsaw2011-10-071-12/+26
| | | | | | | | with line feeds. This was ported from the sandbox to the 3.3 branch, but didn't make it into 3.2. - Re-enable lib2to3's test_parser.py tests, though with an expected failure (see issue 13125).
* Stop trying to write into the stdlib during lib2to3 tests (#12331).Éric Araujo2011-07-311-7/+11
| | | | | This prevents tests from failing when run from a Python installed in a read-only directory.
* #11565: Merge with 3.1.Ezio Melotti2011-03-162-2/+2
|\
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-162-2/+2
| |
* | merge 3.1Benjamin Peterson2011-03-081-12/+26
|\ \ | |/
| * transform izip_longest #11424Benjamin Peterson2011-03-081-12/+26
| |
| * Merged revisions 87002 via svnmerge fromBenjamin Peterson2010-12-042-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r87002 | martin.v.loewis | 2010-12-03 17:11:07 -0600 (Fri, 03 Dec 2010) | 21 lines Merged revisions 85551,86156-86157,86464 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r85551 | benjamin.peterson | 2010-10-15 23:57:29 +0200 (Fr, 15 Okt 2010) | 1 line escape() is now in the html module ........ r86156 | georg.brandl | 2010-11-04 09:34:57 +0100 (Do, 04 Nov 2010) | 1 line Consistency fixes in option parser help texts. ........ r86157 | georg.brandl | 2010-11-04 09:35:30 +0100 (Do, 04 Nov 2010) | 1 line #10286: fix urllib class names. ........ r86464 | benjamin.peterson | 2010-11-14 16:28:52 +0100 (So, 14 Nov 2010) | 1 line match only .py files #10416 ........ ................
| * Merged revisions 85510 via svnmerge fromBenjamin Peterson2010-10-143-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r85510 | benjamin.peterson | 2010-10-14 18:00:04 -0500 (Thu, 14 Oct 2010) | 61 lines Merged revisions 83852-83853,83857,84042,84216,84274-84276,84375,85388,85478,85506-85508 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r83852 | benjamin.peterson | 2010-08-08 15:45:44 -0500 (Sun, 08 Aug 2010) | 1 line wrap with parens ........ r83853 | benjamin.peterson | 2010-08-08 15:46:31 -0500 (Sun, 08 Aug 2010) | 1 line use parens ........ r83857 | benjamin.peterson | 2010-08-08 15:59:49 -0500 (Sun, 08 Aug 2010) | 1 line things which use touch_import should be pre order ........ r84042 | george.boutsioukis | 2010-08-14 16:10:19 -0500 (Sat, 14 Aug 2010) | 2 lines This revision incorporates into the 2to3 tool the new, faster, tree matching algorithm developed during a GSOC project. The algorithm resides in the two added modules, btm_matcher and btm_utils. New code has been added to drive the new matching process in refactor.py and a few minor changes were made in other modules. A BM_compatible flag(False by default) has been added in fixer_base and it is set to True in most of the current fixers. ........ r84216 | benjamin.peterson | 2010-08-19 16:44:05 -0500 (Thu, 19 Aug 2010) | 1 line allow star_expr in testlist_gexp ........ r84274 | benjamin.peterson | 2010-08-22 18:40:46 -0500 (Sun, 22 Aug 2010) | 1 line wrap long line ........ r84275 | benjamin.peterson | 2010-08-22 18:42:22 -0500 (Sun, 22 Aug 2010) | 1 line cleanup ........ r84276 | benjamin.peterson | 2010-08-22 18:51:01 -0500 (Sun, 22 Aug 2010) | 1 line when there's a None value and a traceback, don't call type with it #9661 ........ r84375 | george.boutsioukis | 2010-08-31 08:38:53 -0500 (Tue, 31 Aug 2010) | 3 lines Idiomatic code changes & stylistic issues fixed in the BottomMatcher module. Thanks to Benjamin Peterson for taking the time to review the code. ........ r85388 | benjamin.peterson | 2010-10-12 17:27:44 -0500 (Tue, 12 Oct 2010) | 1 line fix urllib fixer with multiple as imports on a line #10069 ........ r85478 | benjamin.peterson | 2010-10-14 08:09:56 -0500 (Thu, 14 Oct 2010) | 1 line stop abusing docstrings ........ r85506 | benjamin.peterson | 2010-10-14 17:45:19 -0500 (Thu, 14 Oct 2010) | 1 line kill sibling import ........ r85507 | benjamin.peterson | 2010-10-14 17:54:15 -0500 (Thu, 14 Oct 2010) | 1 line remove trailing whitespace ........ r85508 | benjamin.peterson | 2010-10-14 17:55:28 -0500 (Thu, 14 Oct 2010) | 1 line typo ........ ................