bpo-31235: Fix ResourceWarning in test_logging (#3147)

1 file changed