hy/tests
Brandon T. Willard e468d5f081 Refactor REPL error handling and filter Hy internal trace output
These changes make the Hy REPL more closely follow `code.InteractiveConsole`'s
class interface and provide minimally intrusive traceback print-out filtering
via a context manager that temporarily alters `sys.excepthook`.  In other words,
exception messages from the REPL will no longer show Hy internal
code (e.g. importer, compiler and parsing functions).

The boolean variable `hy.errors._hy_filter_internal_errors` dynamically
enables/disables trace filtering, and the env variable
`HY_FILTER_INTERNAL_ERRORS` can be used as the initial value.
2019-02-07 13:43:58 -05:00
..
compilers Retain compiled source and file information for exceptions 2019-02-07 13:43:58 -05:00
importer Retain compiled source and file information for exceptions 2019-02-07 13:43:58 -05:00
macros Update copyright years 2019-02-07 08:57:35 -05:00
native_tests Update copyright years 2019-02-07 08:57:35 -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 Retain compiled source and file information for exceptions 2019-02-07 13:43:58 -05:00
test_hy2py.py Update copyright years 2019-02-07 08:57:35 -05:00
test_lex.py Refactor REPL error handling and filter Hy internal trace output 2019-02-07 13:43:58 -05:00
test_models.py Update copyright years 2019-02-07 08:57:35 -05:00