Skip to content

Commit

Permalink
No-op MockNetCDF __dealloc__ method
Browse files Browse the repository at this point in the history
Overrides `__dealloc__` method in `MockNetCDF` class to prevent suppress
exception messages on tests via no-op/`pass` operation.
  • Loading branch information
benjwadams committed Apr 16, 2024
1 parent d7d861e commit 2a6196a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compliance_checker/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def __init__(self, filename=None):
persist=False,
)

# suppress usual dealloc routine to prevent caught exception messages
# from printing
def __dealloc__(self):
pass

class MockTimeSeries(MockNetCDF):
"""
Expand Down

0 comments on commit 2a6196a

Please sign in to comment.