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

Test failure: test_system_js (test.test_database.TestDatabase)

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.1
    • Component/s: Tests
    • None
    • Environment:
      Linux dev 2.6.37-gentoo #1 Fri Feb 4 15:28:50 CET 2011 x86_64 QEMU Virtual CPU version 0.13.0 GenuineIntel GNU/Linux
      v8 3.5, Mongodb 1.8.2, python 2.4-2.7

      ======================================================================
      ERROR: test_system_js (test.test_database.TestDatabase)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/var/tmp/portage/dev-python/pymongo-2.0.1/work/pymongo-2.0.1/test/test_database.py", line 506, in test_system_js
      self.assertEqual(6, db.system_js.add(1, 5))
      File "/var/tmp/portage/dev-python/pymongo-2.0.1/work/pymongo-2.0.1/pymongo/database.py", line 733, in <lambda>
      scope=

      {'name': name}

      ), *args)
      File "/var/tmp/portage/dev-python/pymongo-2.0.1/work/pymongo-2.0.1/pymongo/database.py", line 674, in eval
      result = self.command("$eval", code, args=args)
      File "/var/tmp/portage/dev-python/pymongo-2.0.1/work/pymongo-2.0.1/pymongo/database.py", line 340, in command
      msg, allowable_errors)
      File "/var/tmp/portage/dev-python/pymongo-2.0.1/work/pymongo-2.0.1/pymongo/helpers.py", line 126, in _check_command_response
      raise OperationFailure(msg % response["errmsg"])
      OperationFailure: command SON([('$eval', Code('function()

      { return this[name].apply(this, arguments); }', {'name': 'add'})), ('args', (1, 5))]) failed: invoke failed: error in invoke: _funcs1:1 TypeError: Cannot call method 'apply' of undefined
      _funcs1 = function() { return this[name].apply(this, arguments); }

      ^

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jbergstroem Johan Bergström
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: