Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1205

Test Failure - test_client.TestClient.test_interrupt_signal

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.5, 3.5
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None
    • Fully Compatible

      This test fails on all the non-Windows build variants. Looks like we encountered this on Bamboo when the test was originally add for PYTHON-294 but the work around was reverted by this commit. Reverting the revert should avoid the cryptic "'int' object is not callable" error.

      ======================================================================
      ERROR [1.534s]: test_interrupt_signal (test_client.TestClient)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/test/test_client.py", line 826, in test_interrupt_signal
          next(db.foo.find({'$where': where}))
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/cursor.py", line 1114, in next
          if len(self.__data) or self._refresh():
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/cursor.py", line 1036, in _refresh
          self.__collation))
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/cursor.py", line 873, in __send_message
          **kwargs)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/mongo_client.py", line 905, in _send_message_with_response
          exhaust)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/mongo_client.py", line 916, in _reset_on_error
          return func(*args, **kwargs)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/server.py", line 136, in send_message_with_response
          response_data = sock_info.receive_message(1, request_id)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/pool.py", line 452, in receive_message
          self._raise_connection_failure(error)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/pool.py", line 552, in _raise_connection_failure
          raise error
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/pool.py", line 450, in receive_message
          self.sock, operation, request_id, self.max_message_size)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/network.py", line 137, in receive_message
          header = _receive_data_on_socket(sock, 16)
        File "/data/mci/8eb1cd526857d904a156325ac303c363/src/pymongo/network.py", line 164, in _receive_data_on_socket
          chunk = sock.recv(length)
      TypeError: 'int' object is not callable
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: