• Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.2
    • Affects Version/s: 1.5.1
    • Component/s: None
    • None
    • Environment:
      linux, windows

      seems to be failing across drivers.

      ======================================================================
      ERROR: test_eval (test.test_database.TestDatabase)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\test\test_database.py",
      line 311, in test_eval
      self.assertEqual(3, db.eval("function

      {return x;}

      ", 3))
      File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\pymongo\database.py",
      line 576, in eval
      result = self.command("$eval", code, args=args)
      File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\pymongo\database.py",
      line 306, in command
      (command, result["errmsg"]))
      OperationFailure: command SON([('$eval', Code('function

      {return x;}

      ', {})), ('args', (3,))]) failed: db assertion failure

      And here's the line from the source that's failing:
      http://github.com/mongodb/mongo-python-driver/blob/master/test/test_database.py#L311

      And here's the implementation of eval:
      http://github.com/mongodb/mongo-python-driver/blob/master/pymongo/database.py#L555

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: