Skip to content
Advertisement

Tag: suppress-warnings

Ignore warnings whose messages contain a specific string

I don’t want warnings whose message contains “property” to be printed. I know that I can ignore a warning by specifying its whole message with: I need something like: I also know that I can disable warnings for a specific part of the code with: Answer The message parameter of filterwarnings is a regular expression, therefore you should be able

Advertisement