Skip to content

Commit

Permalink
Fix bug with doctest references
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jan 20, 2021
1 parent b807cdf commit 4949f7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ We are currently working on porting this changelog to the specifications in
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## Version 0.15.1 - Unreleased
## Version 0.15.2 - Unreleased

### Fixed
* Bug where references to doctest variables were never released


## Version 0.15.1 - Unreleased

### Added
* Documentation improvements
* Minor text fixes
Expand Down
4 changes: 4 additions & 0 deletions xdoctest/doctest_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ def run(self, verbose=None, on_error=None):
pytest.skip()

summary = self._post_run(verbose)

# Clear the global namespace so doctests don't leak memory
self.global_namespace.clear()

return summary

@property
Expand Down

0 comments on commit 4949f7e

Please sign in to comment.