This test blocked forever:
[2020/07/24 06:12:45.352] test_discovery_and_monitoring_integration_find_network_error_Reset_server_and_pool_after_network_error_on_find (test_discovery_and_monitoring.TestIntegration) ... ok [2020/07/24 06:41:23.299] Command stopped early: context canceled [2020/07/24 06:41:23.336] test_discovery_and_monitoring_integration_find_shutdown_error_Concurrent_shutdown_error_on_find (test_discovery_and_monitoring.TestIntegration) ...
I believe the culprit is that the test suite calls thread join without a timeout in waitForThread here: https://github.com/mongodb/mongo-python-driver/blob/64f77068e197d97943e6fb42bf2789e10c940098/test/test_discovery_and_monitoring.py#L403