Skip to content

Commit

Permalink
lnprototest: remove the default __enter__ __exit__ implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Mar 7, 2022
1 parent fd9bae5 commit 66b5a94
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lnprototest/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ def __init__(self, config: Any):
else:
self.logger.setLevel(logging.INFO)

def __enter__(self) -> "Runner":
"""Call the method when enter the with block.
doc: https://docs.python.org/3/reference/datamodel.html#with-statement-context-managers"""
self.start()
return self

def __exit__(self, exc_type, exc_val, exc_tb) -> "Runner":
"""Call the method when exist from the with block.
doc: see __enter__"""
self.stop()
return self

def _is_dummy(self) -> bool:
"""The DummyRunner returns True here, as it can't do some things"""
return False
Expand Down

0 comments on commit 66b5a94

Please sign in to comment.