Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium authored and tylerjereddy committed Dec 4, 2024
1 parent 3507999 commit cdc7870
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testsuite/MDAnalysisTests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def _warn(self, message, category=None, *args, **kwargs):
if isinstance(message, Warning):
self._captured_categories.append(message.__class__)
else:
# as follows Python documentation at
# https://docs.python.org/3/library/warnings.html#warnings.warn
# if category is None, the default UserWarning is used
if category is None:
category = UserWarning
self._captured_categories.append(category)
Expand Down

0 comments on commit cdc7870

Please sign in to comment.