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

Test failure - Jython: AssertionError: 945727182758L is not an instance of (<type 'int'>, <class 'bson.int64.Int64'>)

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12
    • Affects Version/s: None
    • Component/s: Tests
    • None

       [2021/06/15 22:07:40.671] FAIL [0.465s]: test_aggregate_with_multiple_batches_works (test_crud_unified.TestUnifiedAggregate)
       [2021/06/15 22:07:40.671] ----------------------------------------------------------------------
       [2021/06/15 22:07:40.671] Traceback (most recent call last):
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1105, in test_case
       [2021/06/15 22:07:40.671]     self.run_scenario(spec)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1092, in run_scenario
       [2021/06/15 22:07:40.671]     self.check_events(spec.get('expectEvents', []))
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1044, in check_events
       [2021/06/15 22:07:40.671]     self.match_evaluator.match_event(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 554, in match_event
       [2021/06/15 22:07:40.671]     self.match_result(command, actual.command)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 505, in match_result
       [2021/06/15 22:07:40.671]     return self._match_document(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 492, in _match_document
       [2021/06/15 22:07:40.671]     if self._evaluate_if_special_operation(expectation, actual, key):
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 477, in _evaluate_if_special_operation
       [2021/06/15 22:07:40.671]     self._evaluate_special_operation(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 442, in _evaluate_special_operation
       [2021/06/15 22:07:40.671]     method(spec, actual, key_to_compare)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 407, in _operation_type
       [2021/06/15 22:07:40.671]     self.test.assertIsInstance(
       [2021/06/15 22:07:40.671] AssertionError: 945727182758L is not an instance of (<type 'int'>, <class 'bson.int64.Int64'>)
       [2021/06/15 22:07:40.671] ======================================================================
       [2021/06/15 22:07:40.671] FAIL [0.460s]: test_find_with_multiple_batches_works (test_crud_unified.TestUnifiedFind)
       [2021/06/15 22:07:40.671] ----------------------------------------------------------------------
       [2021/06/15 22:07:40.671] Traceback (most recent call last):
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1105, in test_case
       [2021/06/15 22:07:40.671]     self.run_scenario(spec)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1092, in run_scenario
       [2021/06/15 22:07:40.671]     self.check_events(spec.get('expectEvents', []))
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 1044, in check_events
       [2021/06/15 22:07:40.671]     self.match_evaluator.match_event(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 554, in match_event
       [2021/06/15 22:07:40.671]     self.match_result(command, actual.command)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 505, in match_result
       [2021/06/15 22:07:40.671]     return self._match_document(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 492, in _match_document
       [2021/06/15 22:07:40.671]     if self._evaluate_if_special_operation(expectation, actual, key):
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 477, in _evaluate_if_special_operation
       [2021/06/15 22:07:40.671]     self._evaluate_special_operation(
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 442, in _evaluate_special_operation
       [2021/06/15 22:07:40.671]     method(spec, actual, key_to_compare)
       [2021/06/15 22:07:40.671]   File "/data/mci/ccdc36dd3c7a4ea87f178adf53ee1d66/src/test/unified_format.py", line 407, in _operation_type
       [2021/06/15 22:07:40.671]     self.test.assertIsInstance(
       [2021/06/15 22:07:40.671] AssertionError: 1050548146152L is not an instance of (<type 'int'>, <class 'bson.int64.Int64'>)
       [2021/06/15 22:07:40.671] ----------------------------------------------------------------------
       [2021/06/15 22:07:40.671] Ran 2298 tests in 254.286s
       [2021/06/15 22:07:40.671] FAILED (failures=2, skipped=737, expected failures=9)
      

      https://evergreen.mongodb.com/task/mongo_python_driver_3.12_tests_python_version_amazon1_test_ssl__platform~awslinux_auth~auth_ssl~nossl_python_version~jython2.7_coverage~coverage_test_3.0_standalone_09be0b5487ede19ca768ecd5c6c8e7541317c1e5_21_06_15_21_47_12

            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: