(self, fn)
| 266 | self.filter_kwargs = kwargs |
| 267 | |
| 268 | def __call__(self, fn): |
| 269 | @wraps(fn) |
| 270 | def wrapper(*args, **kwargs): |
| 271 | with warnings.catch_warnings(): |
| 272 | warnings.simplefilter(self.action, **self.filter_kwargs) |
| 273 | return fn(*args, **kwargs) |
| 274 | return wrapper |
| 275 | |
| 276 | def __enter__(self): |
| 277 | self.warnings_manager = warnings.catch_warnings() |
nothing calls this directly
no outgoing calls
no test coverage detected