We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The WarningsCapture class in obspy.core.util.testing raises a TypeError when used with the warnings.warn function. For example:
WarningsCapture
obspy.core.util.testing
warnings.warn
import warnings from obspy.core.util.testing import WarningsCapture with WarningsCapture() as w: warnings.warn('something bad is happening')
This occurs because the category parameter can be none, but is not properly checked for if the message parameter is not an instance of Warning.
category
message
Warning
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The
WarningsCapture
class inobspy.core.util.testing
raises a TypeError when used with thewarnings.warn
function. For example:This occurs because the
category
parameter can be none, but is not properly checked for if themessage
parameter is not an instance ofWarning
.The text was updated successfully, but these errors were encountered: