Skip to content

Commit

Permalink
Add doctest for null. Increases coverage from 74% to 75%.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 19, 2023
1 parent 04dc137 commit 0e7e90a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jaraco/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def repo_context(url, branch=None, quiet=True, dest_ctx=temp_dir):

@contextlib.contextmanager
def null():
"""
A null context suitable to stand in for a meaningful context.
>>> with null() as value:
... assert value is None
"""
yield


Expand Down

0 comments on commit 0e7e90a

Please sign in to comment.