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

Test Failure - mockupdb ImportError: attempted relative import with no known parent package

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

       [2022/11/08 22:37:23.943] ERROR: test_mixed_version_sharded (unittest.loader._FailedTest)
       [2022/11/08 22:37:23.943] ----------------------------------------------------------------------
       [2022/11/08 22:37:23.943] ImportError: Failed to import test module: test_mixed_version_sharded
       [2022/11/08 22:37:23.943] Traceback (most recent call last):
       [2022/11/08 22:37:23.943]   File "/opt/python/3.7/lib/python3.7/unittest/loader.py", line 436, in _find_test_path
       [2022/11/08 22:37:23.943]     module = self._get_module_from_name(name)
       [2022/11/08 22:37:23.943]   File "/opt/python/3.7/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
       [2022/11/08 22:37:23.943]     __import__(name)
       [2022/11/08 22:37:23.943]   File "/data/mci/0f809454568cb24744d26028f2d6aec0/src/test/mockupdb/test_mixed_version_sharded.py", line 25, in <module>
       [2022/11/08 22:37:23.943]     from .operations import upgrades
       [2022/11/08 22:37:23.943] ImportError: attempted relative import with no known parent package
      

      https://evergreen.mongodb.com/task/mongo_python_driver_mockupdb_tests__platform~ubuntu_18.04_python_version~3.7_mockupdb_1abcd3fc0c3f20c051cda36cdd01cc553dce5c53_22_11_07_21_01_56

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

              Created:
              Updated:
              Resolved: