erikrose / parsimonious

The fastest pure-Python PEG parser I can muster
MIT License
1.79k stars 126 forks source link

Test and exception improvements #207

Closed lucaswiman closed 2 years ago

lucaswiman commented 2 years ago

A few small improvements:

  1. Use raise ... from ... when raising a visitation error. This slightly improves the traceback.
  2. Update tox/pytest setup:
    • Use --tb=native to make failures more concise.
    • Add an option to tox to run a particular test (e.g. tox parsimonious/tests/test_grammar.py::sometest)
lucaswiman commented 2 years ago

This is a very minor change, so I'm going to merge this to make development easier in this repo.