Failed in a patch build:
ERROR: deque mutated during iteration (RuntimeError) Traceback (most recent call last): File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 625, in test_command_cursor_close lambda cursor: cursor.close()) File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 602, in _test_cursor_helper self.assertNotIn(lsid, session_ids(self.client)) File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 57, in session_ids return [s.session_id for s in client._topology._session_pool] File "/data/mci/ed6a3d8b2f9b50f863c015bd189a1816/src/test/test_session.py", line 57, in <listcomp> return [s.session_id for s in client._topology._session_pool] RuntimeError: deque mutated during iteration
I think this is a bug in the test suite. It should acquire the topology lock before iterating the internal session pool.