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

test/dns directory causes ImportWarning on Python 2

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.10
    • Affects Version/s: None
    • Component/s: Tests
    • None

      $ python2.7 setup.py test -s test.test_srv_polling
      /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
        warnings.warn(msg)
      running test
      running egg_info
      writing requirements to pymongo.egg-info/requires.txt
      writing pymongo.egg-info/PKG-INFO
      writing top-level names to pymongo.egg-info/top_level.txt
      writing dependency_links to pymongo.egg-info/dependency_links.txt
      reading manifest file 'pymongo.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      writing manifest file 'pymongo.egg-info/SOURCES.txt'
      running build_ext
      test_addition (test.test_srv_polling.TestSrvPolling) ... ok
      test_dns_failures (test.test_srv_polling.TestSrvPolling) ... /Users/shane/git/mongo-python-driver/test/test_srv_polling.py:192: ImportWarning: Not importing directory '/Users/shane/git/mongo-python-driver/test/dns': missing __init__.py
        from dns import exception
      

      Possibly related to PYTHON-2002?

            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: