Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter selectively with __tracebackhide__ #1526

Merged
merged 4 commits into from
Apr 20, 2016
Merged

Filter selectively with __tracebackhide__ #1526

merged 4 commits into from
Apr 20, 2016

Commits on Apr 20, 2016

  1. Filter selectively with __tracebackhide__

    When __tracebackhide__ gets set to an exception type or list/tuple of
    exception types, only those exceptions get filtered, while the full
    traceback is shown if another exception (e.g. a bug in a assertion
    helper) happens.
    The-Compiler committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    b607f67 View commit details
    Browse the repository at this point in the history
  2. Fix tests for python 2.6

    The-Compiler committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    4c552d4 View commit details
    Browse the repository at this point in the history
  3. Use a callable __tracebackhide__ for filtering

    While this leads to slightly more complicated user code for the common
    case (checking if the exception is of a given type) it's easier to
    implement and more flexible.
    The-Compiler committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    7516054 View commit details
    Browse the repository at this point in the history
  4. Use py.builtin.callable

    This restores compatibility with Python 3.0/3.1
    The-Compiler committed Apr 20, 2016
    Configuration menu
    Copy the full SHA
    aa87395 View commit details
    Browse the repository at this point in the history