(caught_warnings)
| 301 | |
| 302 | |
| 303 | def reissue_pt_warnings(caught_warnings): |
| 304 | # Reissue warnings |
| 305 | if len(caught_warnings) > 1: |
| 306 | for w in caught_warnings: |
| 307 | if w.category is not UserWarning: |
| 308 | warnings.warn(w.message, w.category) |
| 309 | |
| 310 | |
| 311 | @contextmanager |
no test coverage detected