Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 63e30843dc Add 'yield' inside async function' for Python 3.5. 2017-08-05 22:33:11 +02:00
Dave Halter 94570acef7 Move another test to be used by all versions. 2017-08-05 21:38:09 +02:00
Dave Halter 1b235e16e1 Fixing a warning and moving some tests around. 2017-08-05 21:31:13 +02:00
Dave Halter 172a534baa Move some tests around. 2017-08-05 21:22:21 +02:00
Dave Halter 0513b14225 Write a few more tests. 2017-08-05 21:12:25 +02:00
Dave Halter 5f73b42067 Fix issues with errof leafs and error nodes in a certain order. 2017-08-05 21:00:25 +02:00
Dave Halter 57f7c465ce Add 'too many levels of indentation' issue. 2017-08-05 14:45:47 +02:00
Dave Halter 44edbd56e7 Some better message for tokenizing fails. 2017-08-05 14:14:47 +02:00
Dave Halter 5fd6469b6f A small improvement to python -m parso.python.tokenize 2017-08-05 01:16:30 +02:00
Dave Halter e62a88b190 Use a bit better warnings for tokenizer errors. 2017-08-03 21:48:04 +02:00
Dave Halter 8cebfc3e8a Add some QA tests to avoid not realizing that escape decoding in literals has been changed. 2017-08-02 11:10:01 +02:00
Dave Halter d6b6354e17 Get escaping issues working in all versions. 2017-08-02 10:39:02 +02:00
Dave Halter 3ccbf4326c Added the unicode/bytes literal escaping issues. 2017-08-02 10:17:15 +02:00
Dave Halter d6c624bd34 Finally fix Python 2.6.
Also added a syntax for 2.6. There are some thing that just don't work in 2.6.
2017-07-31 21:33:59 +02:00
Dave Halter ddd16124ac Fix Python 2.7 tests. 2017-07-31 12:45:39 +02:00
Dave Halter 58c32591d0 Some preparations to get Python 2 tests working. 2017-07-31 12:33:47 +02:00
Dave Halter 5fbbb225dd Refactor a bit for Python 2. 2017-07-31 10:27:57 +02:00
Dave Halter 84ed1af1e4 Get Python3.3+ passing. 2017-07-31 09:28:07 +02:00
Dave Halter 3f836c5841 Python 3.4 fixes. 2017-07-31 00:25:15 +02:00
Dave Halter 7f6bef19e1 Fix a few things to get Python3.5 working. 2017-07-30 22:24:22 +02:00
Dave Halter 0906c0b634 Add no binding found for nonlocal issue 2017-07-30 21:33:26 +02:00
Dave Halter aa0225f63f Move some code around in tests. 2017-07-30 19:47:10 +02:00
Dave Halter 45b965063e Fix an issue with starred arguments and if they are defined or used. 2017-07-30 18:42:59 +02:00
Dave Halter 94ce899a86 Add issue 'too many expressions in star-unpacking assignment' 2017-07-30 15:13:21 +02:00
Dave Halter cc24ba61ef Move some tests a bit around. 2017-07-30 14:21:42 +02:00
Dave Halter d7b7548f8d Add the issue 'name %s is nonlocal and global 2017-07-30 13:12:27 +02:00
Dave Halter 443cb1ce08 Fix another small issue with global/nonlocal names. 2017-07-30 12:55:58 +02:00
Dave Halter 2420f57a5c Better checking of annotations/params and nonlocals/globals. 2017-07-30 12:23:17 +02:00
Dave Halter b7726d05cf Fix some nonlocal/global issues. 2017-07-30 01:02:36 +02:00
Dave Halter 4ff25e8c92 A bit of a better overview in the README what current issues are. 2017-07-29 16:11:04 +02:00
Dave Halter 436105e11a Note in README that f-strings are not parsed. 2017-07-29 15:35:27 +02:00
Dave Halter c139ef4107 Fix an issue with assigning to __debug__, which is essentially the same as assigning to a keyword. 2017-07-29 15:30:54 +02:00
Dave Halter 637e557486 Last issue around expr_stmt. 2017-07-27 00:09:38 +02:00
Dave Halter 8071580a4c Some more tests. 2017-07-26 23:57:38 +02:00
Dave Halter 0f73f1c9c4 Fix the final issue with expr_list. 2017-07-26 23:56:30 +02:00
Dave Halter 7e8961969d Fixed all cases that are called "can't assign/delete %s". 2017-07-26 23:38:41 +02:00
Dave Halter e776e2a13d Add issues if users want to assign to operators. 2017-07-26 23:08:36 +02:00
Dave Halter 6bdccd61cc Handle nested statements. 2017-07-26 22:19:02 +02:00
Dave Halter d48e927224 Add issues for literal assignments. 2017-07-26 22:08:57 +02:00
Dave Halter e3828d6fb8 Check for some lambda and comprehension errors when assigning to them. 2017-07-26 21:38:17 +02:00
Dave Halter 186160b9ff Add issue 'nonlocal declaration not allowed at module level' 2017-07-25 22:29:09 +02:00
Dave Halter 87ce5fa9a4 Add issue 'import * only allowed at module level' 2017-07-25 22:23:38 +02:00
Dave Halter d6f5fcf439 Add issue 'duplicate argument '%s' in function definition' 2017-07-25 22:17:15 +02:00
Dave Halter 6a92f5ec2d Better __future__ import handling for those that don't exist. 2017-07-25 20:21:38 +02:00
Dave Halter d012353637 Add the remaining issues for arguments. 2017-07-25 02:25:06 +02:00
Dave Halter babd7fca92 Add issue 'positional argument follows keyword argument unpacking'. 2017-07-25 01:54:25 +02:00
Dave Halter d54d7752d4 Some more issues regarding keyword arguments. 2017-07-25 01:19:07 +02:00
Dave Halter 00bc1a5b94 Add issue 'keyword can't be an expression' 2017-07-25 00:58:08 +02:00
Dave Halter 6085c91df1 Some issues regarding annotations. 2017-07-25 00:38:27 +02:00
Dave Halter 319a0cc56f Add issue: 'bytes can only contain ASCII literal characters.' 2017-07-24 18:28:14 +02:00
Dave Halter 4e1513ae72 Add issue 'non-default argument follows default argument' 2017-07-24 18:14:54 +02:00
Dave Halter d1eb1d61ec Add two more issues one about strings and one about an import. 2017-07-24 00:34:14 +02:00
Dave Halter c2ab9a9e25 Add issue 'dict unpacking cannot be used in dict comprehension' 2017-07-23 23:47:57 +02:00
Dave Halter 915b00dab7 Added issue: iterable unpacking cannot be used in comprehension 2017-07-23 23:22:05 +02:00
Dave Halter 33769c6243 Add issue: Generator expression must be parenthesized if not sole argument 2017-07-23 22:56:19 +02:00
Dave Halter 42842a6949 Remove some useless code. 2017-07-23 21:50:53 +02:00
Dave Halter a13f1a18a9 A dict unpacking test. 2017-07-23 19:55:05 +02:00
Dave Halter 0fe872f87a A few more tests. 2017-07-22 19:21:56 +02:00
Dave Halter 3669a81e2f Small improvements. 2017-07-22 19:07:55 +02:00
Dave Halter d76eee2a96 Add 'named arguments must follow bare *' issue and a few conftest tweaks. 2017-07-22 19:00:35 +02:00
Dave Halter 1b66fa4d44 Correct a parent issue in param rewriting. 2017-07-22 18:46:57 +02:00
Dave Halter 58fbd61898 Small refactoring. 2017-07-22 17:32:31 +02:00
Dave Halter 89999949e2 Move some 2.6 stuff around. 2017-07-22 16:00:28 +02:00
Dave Halter 1ed3cac7c0 Move some things around to allow checking for different versions. 2017-07-22 15:47:04 +02:00
Dave Halter 9e5d6db24a More small fixes regarding docstrings. 2017-07-21 19:56:04 +02:00
Dave Halter 97b98a1da3 Fix an issue where the future import should be first. 2017-07-21 19:43:49 +02:00
Dave Halter 1df06025c2 Handling of star_expr and some async issues. 2017-07-21 17:23:25 +02:00
Dave Halter 82d69ca211 Add a comment about using async funcdefs. 2017-07-20 17:38:34 +02:00
Dave Halter 05f86b9c87 Fix an issue with async funcdefs in different forms. 2017-07-20 17:37:57 +02:00
Dave Halter fa30872d26 Add and fix some async/await issues. 2017-07-20 17:28:43 +02:00
Dave Halter 9296fe3def Skip 2 tests in Python 2.6. 2017-07-20 17:11:10 +02:00
Dave Halter 26c71a9586 Add yield issues when outside function. 2017-07-20 09:51:35 +02:00
Dave Halter fc1c16b966 await checks. 2017-07-20 09:44:10 +02:00
Dave Halter 7c9877cd2e Check for future imports in the beginning. 2017-07-20 09:21:28 +02:00
Dave Halter 03526cd84e Add default 'except:' must be last. 2017-07-20 01:33:59 +02:00
Dave Halter 9c4bf8cec4 Add error code for return outside function. 2017-07-20 00:20:22 +02:00
Dave Halter d21504e2ca break should be in loop. 2017-07-20 00:11:15 +02:00
Dave Halter 4a86571b21 Add 'continue' not properly in loop 2017-07-19 23:52:41 +02:00
Dave Halter 4f7d78716a Remove the strange return values from visi_leaf. 2017-07-19 23:40:31 +02:00
Dave Halter 9b8418db3f Forgot to check in the allowed_syntax file. 2017-07-19 23:35:16 +02:00
Dave Halter ff04517895 Remove a skipped test. 2017-07-19 23:33:34 +02:00
Dave Halter 4919eccf00 Add 'continue' not supported inside 'finally' clause. 2017-07-19 23:33:16 +02:00
Dave Halter 944fe5a896 Fix the last IndentationError. 2017-07-19 22:15:20 +02:00
Dave Halter d52c8651d7 Fix a 2.7 error. 2017-07-19 21:58:38 +02:00
Dave Halter bf5190c7bf Add SyntaxError: too many statically nested blocks. 2017-07-19 21:56:06 +02:00
Dave Halter 65df539e97 Better matching syntax errors. 2017-07-19 20:56:31 +02:00
Dave Halter 756587ae4a Add tests to check if python returns the same errors as the parser. 2017-07-19 20:54:23 +02:00
Dave Halter 6876e1b7c0 Use ERROR_DEDENT instead of ERRORTOKEN for wrong dedents. 2017-07-19 20:15:06 +02:00
Dave Halter 569cb99ca7 Start scanning for indentation errors. 2017-07-19 18:45:58 +02:00
Dave Halter 5e65bd2aaf Remove xfail tests that didn't make any sense. 2017-07-19 18:15:23 +02:00
Dave Halter 78c371f73a Refactor the version info to use a tuple, always. 2017-07-19 09:09:33 +02:00
Dave Halter dc3b3158eb Move some code from one compatibility file to another. 2017-07-18 18:00:51 +02:00
Dave Halter 790bc459ed Make a proper recovery for only error statements in a suite. 2017-07-18 17:53:04 +02:00
Dave Halter 6ee986aa45 Remove some code that wasn't doing anything. 2017-07-17 08:49:02 +02:00
Dave Halter 837e9ca388 A paren wrongly used in __repr__. 2017-07-17 08:48:19 +02:00
Dave Halter 1a4539420d addtoken -> add_token. 2017-07-17 08:44:27 +02:00
Dave Halter e3f7427c99 Restructure the Python 2 grammar to be closer to the original Python 2 grammar in case of list comprehensions. 2017-07-16 22:14:15 +02:00
Dave Halter 688dfaad24 Make ellipsis work for the differences between 2 and 3. 2017-07-16 18:49:19 +02:00
Dave Halter 33344d3ce4 Docstring changes. 2017-07-14 19:30:35 +02:00
Dave Halter f6b3b1cc24 Make version a keyword only argument in load_grammar. 2017-07-14 18:28:03 +02:00