scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Allow user context managers, suppress spurious NameErrors #35

Closed ev-br closed 2 years ago

ev-br commented 2 years ago

These patches are ported from doctest_scip_api branch, which runs testmod on scipy submodules.

  1. Add a user-provided context manager hook to DTConfig, add a sample implementation (a noop stub, basically)
  2. Suppress excessive name errors after an unexpected exception.

Details are in the commit messages. Maybe 2. should grow an entry in DTConfig. --- done

ev-br commented 2 years ago

All green now, merging.