hy/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
..
compilers Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
importer Retain compiled source and file information for exceptions 2019-02-07 13:43:58 -05:00
macros Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
native_tests Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
resources Update copyright years 2019-02-07 08:57:35 -05:00
__init__.py Migrate from Nose to pytest 2017-04-26 14:00:11 -07:00
test_bin.py Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
test_hy2py.py Update copyright years 2019-02-07 08:57:35 -05:00
test_lex.py Improve correspondence with Python errors and console behavior 2019-02-07 13:45:41 -05:00
test_models.py Update copyright years 2019-02-07 08:57:35 -05:00