Commit Graph

212 Commits

Author SHA1 Message Date
Dave Halter 90edb2d0cf Move the iter_errors and normalizer methods to grammar.py. 2017-08-06 15:32:50 +02:00
Dave Halter 3e39a04bb1 Fix opening contexts at the right position. 2017-08-06 14:39:26 +02:00
Dave Halter 8382f338ca Fix some small issues around expr_stmt. 2017-08-06 02:52:52 +02:00
Dave Halter f4b51d91ee Add python3.4/3.3 issue 'can use starred expression only as assignment target'. 2017-08-06 01:38:05 +02:00
Dave Halter 97525958b6 Move failing examples to a separate file. 2017-08-06 00:46:05 +02:00
Dave Halter d33e45f4cd Rename a test function. 2017-08-06 00:38:14 +02:00
Dave Halter 0e3e393f37 Self test on parsos files to check if there's no syntax errors. 2017-08-05 23:39:44 +02:00
Dave Halter 065081f227 Fix two more TODOs about bytes in Python 2. 2017-08-05 23:12:33 +02:00
Dave Halter a2d6336028 General cleanup in syntax error detection. Adding a few comments. 2017-08-05 23:03:39 +02:00
Dave Halter c3aab1b148 Finally able to delete a function because all the tests were generalized. 2017-08-05 22:55:12 +02:00
Dave Halter f8314f0dea Another small refactoring. 2017-08-05 22:47:16 +02:00
Dave Halter c07ad1dfe3 Move more errors to be used by all versions. 2017-08-05 22:45:53 +02:00
Dave Halter aae38e2c73 Move more tests. 2017-08-05 22:39:17 +02:00
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 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 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 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