hy/tests
Gergely Nagy fee7d33184
Guard against a few invalid list comprehension cases
Some valid-looking list comprehensions, such as (genexpr x []) can crash
Python 2.7. The AST we generate from these cannot be expressed in
Python, but were valid in Hy.

Added two guards to guard against this, so we raise an error instead of
crashing Python.

Closes #572, #591 and #634.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-10 15:55:11 +02:00
..
compilers Guard against a few invalid list comprehension cases 2015-08-10 15:55:11 +02:00
importer hy/compiler.py: import only handles HySymbol and HyList, bail on others 2014-02-11 17:29:50 +01:00
lex Add one-argument division and rationals (closes #825 and #826) 2015-07-29 13:30:24 -05:00
macros move 'wrap_value' test from macros/ to models/ 2015-01-24 08:32:20 +08:00
models Merge pull request #761 from larme/fix-replace-hyobject 2015-07-23 14:09:56 +02:00
native_tests Fix multi-statement 'for' with 'else' and add test cases for 'else' 2015-08-10 10:16:25 +02:00
resources Fixes a long-standing bug in import under Python 3.3 and later. 2014-12-07 11:02:48 -07:00
test_files Run file using hy -i 2015-02-28 18:11:42 +10:00
__init__.py Move Botsbuildbots to contrib 2015-08-04 11:59:10 +02:00
test_bin.py Run file using hy -i 2015-02-28 18:11:42 +10:00