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

pymongocrypt test failures

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

      The pymongocrypt test suite is failing in Evergreen with this error:

      [2019/08/14 12:47:58.941] FAIL: test_pymongocrypt_version (test.test_binding.TestBinding)
      [2019/08/14 12:47:58.941] ----------------------------------------------------------------------
      [2019/08/14 12:47:58.941] Traceback (most recent call last):
      [2019/08/14 12:47:58.941]   File "/data/mci/9184a23b33b9a42a917509840967340e/libmongocrypt/bindings/python/test/test_binding.py", line 35, in test_pymongocrypt_version
      [2019/08/14 12:47:58.941]     self.assertVersionLike(pymongocrypt.__version__)
      [2019/08/14 12:47:58.941]   File "/data/mci/9184a23b33b9a42a917509840967340e/libmongocrypt/bindings/python/test/test_binding.py", line 32, in assertVersionLike
      [2019/08/14 12:47:58.941]     self.assertGreaterEqual(len(version.split('.')), 3, msg=version)
      [2019/08/14 12:47:58.941] AssertionError: 0.1b0
      [2019/08/14 12:47:58.941] ----------------------------------------------------------------------
      [2019/08/14 12:47:58.941] Ran 18 tests in 0.170s
      [2019/08/14 12:47:58.941] FAILED (failures=1)
      

      And this error:

      [2019/08/13 21:51:41.083] writing manifest file 'pymongocrypt.egg-info/SOURCES.txt'
      [2019/08/13 21:51:41.268] Traceback (most recent call last):
      [2019/08/13 21:51:41.268]   File "setup.py", line 67, in <module>
      [2019/08/13 21:51:41.268]     cmdclass={'bdist_wheel': bdist_wheel},
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
      [2019/08/13 21:51:41.268]     return distutils.core.setup(**attrs)
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/distutils/core.py", line 151, in setup
      [2019/08/13 21:51:41.268]     dist.run_commands()
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
      [2019/08/13 21:51:41.268]     self.run_command(cmd)
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
      [2019/08/13 21:51:41.268]     cmd_obj.run()
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/site-packages/setuptools/command/test.py", line 229, in run
      [2019/08/13 21:51:41.268]     self.run_tests()
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/site-packages/setuptools/command/test.py", line 251, in run_tests
      [2019/08/13 21:51:41.268]     exit=False,
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/main.py", line 94, in __init__
      [2019/08/13 21:51:41.268]     self.parseArgs(argv)
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/main.py", line 149, in parseArgs
      [2019/08/13 21:51:41.268]     self.createTests()
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/main.py", line 158, in createTests
      [2019/08/13 21:51:41.268]     self.module)
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
      [2019/08/13 21:51:41.268]     suites = [self.loadTestsFromName(name, module) for name in names]
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
      [2019/08/13 21:51:41.268]     return self.loadTestsFromModule(obj)
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/site-packages/setuptools/command/test.py", line 55, in loadTestsFromModule
      [2019/08/13 21:51:41.268]     tests.append(self.loadTestsFromName(submodule))
      [2019/08/13 21:51:41.268]   File "/opt/python/2.7/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
      [2019/08/13 21:51:41.268]     module = __import__('.'.join(parts_copy))
      [2019/08/13 21:51:41.268]   File "/data/mci/e921e365aff17ca55944e99d06915db4/libmongocrypt/bindings/python/test/test_mongocrypt.py", line 21, in <module>
      [2019/08/13 21:51:41.268]     from bson import json_util, BSON
      [2019/08/13 21:51:41.268]   File "build/bdist.linux-x86_64/egg/bson/json_util.py", line 116, in <module>
      [2019/08/13 21:51:41.269]   File "build/bdist.linux-x86_64/egg/pymongo/__init__.py", line 77, in <module>
      [2019/08/13 21:51:41.269]   File "build/bdist.linux-x86_64/egg/pymongo/collection.py", line 26, in <module>
      [2019/08/13 21:51:41.269]   File "build/bdist.linux-x86_64/egg/bson/raw_bson.py", line 135, in <module>
      [2019/08/13 21:51:41.269]   File "build/bdist.linux-x86_64/egg/bson/codec_options.py", line 313, in with_options
      [2019/08/13 21:51:41.269]   File "build/bdist.linux-x86_64/egg/bson/codec_options.py", line 245, in __new__
      [2019/08/13 21:51:41.269]   File "/opt/python/2.7/lib/python2.7/abc.py", line 180, in __subclasscheck__
      [2019/08/13 21:51:41.269]     if issubclass(subclass, scls):
      [2019/08/13 21:51:41.269]   File "/opt/python/2.7/lib/python2.7/site-packages/typing.py", line 1250, in __subclasscheck__
      [2019/08/13 21:51:41.269]     return super(GenericMeta, self).__subclasscheck__(cls)
      [2019/08/13 21:51:41.269] TypeError: super() argument 1 must be type, not None
      

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

              Created:
              Updated:
              Resolved: