await pubsub.close() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1 passed, 1 warning in 9.19s EXIT:0