hy/tests/native_tests
Brandon T. Willard fb6feaf082 Improve correspondence with Python errors and console behavior
Compiler and command-line error messages now reflect their Python counterparts.
E.g. where Python emits a `SyntaxError`, so does Hy; same for `TypeError`s.
Multiple tests have been added that check the format and type of raised
exceptions over varying command-line invocations (e.g. interactive and not).

A new exception type for `require` errors was added so that they can be treated
like normal run-time errors and not compiler errors.

The Hy REPL has been further refactored to better match the class-structured
API.  Now, different error types are handled separately and leverage more base
class-provided functionality.

Closes hylang/hy#1486.
2019-02-07 13:45:41 -05:00
..
contrib Update copyright years 2019-02-07 08:57:35 -05:00
extra Update copyright years 2019-02-07 08:57:35 -05:00
__init__.py Support PEP 328 2018-02-06 23:41:12 -05:00
comprehensions.hy Update uses of the old comprehension forms 2018-06-13 17:31:08 -07:00
core.hy Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
defclass.hy Update copyright years 2019-02-07 08:57:35 -05:00
language.hy Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
mangling.hy Update copyright years 2019-02-07 08:57:35 -05:00
mathematics.hy Update copyright years 2019-02-07 08:57:35 -05:00
model_patterns.hy Update copyright years 2019-02-07 08:57:35 -05:00
native_macros.hy Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
operators.hy Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
py3_only_tests.hy Update copyright years 2019-02-07 08:57:35 -05:00
py35_only_tests.hy Update copyright years 2019-02-07 08:57:35 -05:00
py36_only_tests.hy Update copyright years 2019-02-07 08:57:35 -05:00
quote.hy Update copyright years 2019-02-07 08:57:35 -05:00
tag_macros.hy Update copyright years 2019-02-07 08:57:35 -05:00
unless.hy Burninate the synonyms true, false, and nil 2016-11-23 18:35:17 -08:00
when.hy Burninate the synonyms true, false, and nil 2016-11-23 18:35:17 -08:00
with_decorator.hy Update copyright years 2019-02-07 08:57:35 -05:00
with_test.hy Update copyright years 2019-02-07 08:57:35 -05:00