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

Test Failure - various pool tests with Jython 2.7

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

      The same failures fixed for pypy(3) in PYTHON-1179. Note that Jython has real parallelism (no global interpreter lock).

      ======================================================================
      FAIL: test_max_idle_time_checkout (test_client.TestClient)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/behackett/work/mongo-python-driver/test/test_client.py", line 339, in test_max_idle_time_checkout
          self.assertEqual(sock_info, new_sock_info)
      AssertionError: SocketInfo(<_socket._socketobject object at 0x12d>) CLOSED at 302 != SocketInfo(<_socket._socketobject object at 0x12f>) at 304
      
      ======================================================================
      FAIL: test_no_wait_queue_timeout (test_pooling.TestPooling)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/behackett/work/mongo-python-driver/test/test_pooling.py", line 349, in test_no_wait_queue_timeout
          self.assertEqual(t.sock, s1)
      AssertionError: SocketInfo(<_socket._socketobject object at 0x1137>) at 4408 != SocketInfo(<_socket._socketobject object at 0x1139>) CLOSED at 4410
      
      ======================================================================
      FAIL: test_pool_reuses_open_socket (test_pooling.TestPooling)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/behackett/work/mongo-python-driver/test/test_pooling.py", line 202, in test_pool_reuses_open_socket
          self.assertEqual(sock_info, new_sock_info)
      AssertionError: SocketInfo(<_socket._socketobject object at 0x113b>) CLOSED at 4412 != SocketInfo(<_socket._socketobject object at 0x113d>) at 4414
      
      ======================================================================
      FAIL: test_socket_closed (test_pooling.TestPooling)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/behackett/work/mongo-python-driver/test/test_pooling.py", line 256, in test_socket_closed
          self.assertFalse(socket_checker.socket_closed(s))
      AssertionError: True is not false
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: