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

[Build Failure] Fix handling of warnings in connection string tests

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.5
    • Affects Version/s: None
    • Component/s: None

      test.test_uri_spec.TestAllScenarios.test_connection_string_test_valid-auth_At-signs_in_options_aren_t_part_of_the_userinfo

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_rhel8_test_ssl__platform~rhel8_auth_ssl~noauth_nossl_python_version~3.10_coverage~coverage_test_latest_replica_set_42c08417004e015c61e732717370bcb2c01e22f3_23_08_15_18_05_24/tests?execution=0&sortBy=STATUS&sortDir=ASC

      
       [2023/08/15 19:01:29.958] FAILURE: AssertionError: True != False : Unexpected warning for test 'At-signs in options aren't part of the userinfo' ()
       [2023/08/15 19:01:29.958] args = (<test.test_uri_spec.TestAllScenarios testMethod=test_connection_string_test_valid-auth_At-signs_in_options_aren't_part_of_the_userinfo>,)
       [2023/08/15 19:01:29.958] kwargs = {}, original_workdir = '/data/mci/05366b3b69cfcd6a36c63286fe8bf8c8/src'
       [2023/08/15 19:01:29.958]     def modified_test_scenario(*args, **kwargs):
       [2023/08/15 19:01:29.958]         original_workdir = os.getcwd()
       [2023/08/15 19:01:29.958]         os.chdir(target_workdir)
       [2023/08/15 19:01:29.958] >       func(*args, **kwargs)
       [2023/08/15 19:01:29.958] /data/mci/05366b3b69cfcd6a36c63286fe8bf8c8/src/test/test_uri_spec.py:85:
       [2023/08/15 19:01:29.958] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2023/08/15 19:01:29.958] /data/mci/05366b3b69cfcd6a36c63286fe8bf8c8/src/test/test_uri_spec.py:121: in run_scenario
       [2023/08/15 19:01:29.958]     self.assertEqual(
       [2023/08/15 19:01:29.958] E   AssertionError: True != False : Unexpected warning for test 'At-signs in options aren't part of the userinfo'
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: