bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)

2 files changed