hy/tests/compilers
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
..
native Remove the import-as and import-from builtins 2013-04-20 16:06:32 +02:00
__init__.py Adding more testing. 2013-03-02 23:47:16 -05:00
test_ast.py Guard against a few invalid list comprehension cases 2015-08-10 15:55:11 +02:00
test_compiler.py move imports and operators to satisfy new version of pep8 checker 2015-02-16 22:21:49 -08:00
test_quoting.py Adding some basic testing in; more to come. 2013-04-08 20:23:51 -04:00