-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
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
", 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
', {})), ('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