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

Fix spec tests that require DNSPython

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None

    Description

      Traceback:
      [2021/10/11 23:12:11.462] ======================================================================
      [2021/10/11 23:12:11.462] FAIL: test_test_uri_options_srv-service-name-option_SRV_URI_with_custom_srvServiceName (test_uri_spec.TestAllScenarios)
      [2021/10/11 23:12:11.462] ----------------------------------------------------------------------
      [2021/10/11 23:12:11.462] Traceback (most recent call last):
      [2021/10/11 23:12:11.462] File "/data/mci/97f7c578825da9526c744cfe77c10c20/src/test/test_uri_spec.py", line 84, in modified_test_scenario
      [2021/10/11 23:12:11.462] func(*args, **kwargs)
      [2021/10/11 23:12:11.462] File "/data/mci/97f7c578825da9526c744cfe77c10c20/src/test/test_uri_spec.py", line 111, in run_scenario
      [2021/10/11 23:12:11.462] not expected_valid, "error") % test['description'])
      [2021/10/11 23:12:11.462] AssertionError: False != True : Unexpected error for test 'SRV URI with custom srvServiceName'
      [2021/10/11 23:12:11.462] -
      ---------------------------------------------------------------------

      This error occurs only when you do not have dnspython installed. https://jira.mongodb.org/browse/PYTHON-2823 This is the ticket that caused this error to start occurring.

       

      Attachments

        Activity

          People

            julius.park@mongodb.com Julius Park
            julius.park@mongodb.com Julius Park
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: