[2017/10/01 16:47:46.585] **********************************************************************
[2017/10/01 16:47:46.585] File "examples/aggregation.rst", line 140, in default
[2017/10/01 16:47:46.585] Failed example:
[2017/10/01 16:47:46.585] pprint.pprint(
[2017/10/01 16:47:46.585] db.things.map_reduce(mapper, reducer, "myresults", full_response=True))
[2017/10/01 16:47:46.585] Expected:
[2017/10/01 16:47:46.585] {u'counts': {u'emit': 6, u'input': 4, u'output': 3, u'reduce': 2},
[2017/10/01 16:47:46.585] u'ok': ...,
[2017/10/01 16:47:46.585] u'result': u'...',
[2017/10/01 16:47:46.585] u'timeMillis': ...}
[2017/10/01 16:47:46.585] Got:
[2017/10/01 16:47:46.585] {u'$clusterTime': {u'clusterTime': Timestamp(1506890866, 5738),
[2017/10/01 16:47:46.585] u'signature': {u'hash': Binary('\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 0),
[2017/10/01 16:47:46.585] u'keyId': 0L}},
[2017/10/01 16:47:46.585] u'counts': {u'emit': 6, u'input': 4, u'output': 3, u'reduce': 2},
[2017/10/01 16:47:46.585] u'ok': 1.0,
[2017/10/01 16:47:46.585] u'operationTime': Timestamp(1506890866, 5738),
[2017/10/01 16:47:46.585] u'result': u'myresults',
[2017/10/01 16:47:46.585] u'timeMillis': 48}
[2017/10/01 16:47:46.667] **********************************************************************
[2017/10/01 16:47:46.667] File "examples/aggregation.rst", line 167, in default
[2017/10/01 16:47:46.667] Failed example:
[2017/10/01 16:47:46.667] pprint.pprint(
[2017/10/01 16:47:46.667] db.things.map_reduce(
[2017/10/01 16:47:46.667] mapper,
[2017/10/01 16:47:46.667] reducer,
[2017/10/01 16:47:46.667] out=SON([("replace", "results"), ("db", "outdb")]),
[2017/10/01 16:47:46.667] full_response=True))
[2017/10/01 16:47:46.667] Expected:
[2017/10/01 16:47:46.667] {u'counts': {u'emit': 6, u'input': 4, u'output': 3, u'reduce': 2},
[2017/10/01 16:47:46.667] u'ok': ...,
[2017/10/01 16:47:46.667] u'result': {u'collection': ..., u'db': ...},
[2017/10/01 16:47:46.667] u'timeMillis': ...}
[2017/10/01 16:47:46.667] Got:
[2017/10/01 16:47:46.667] {u'$clusterTime': {u'clusterTime': Timestamp(1506890866, 5748),
[2017/10/01 16:47:46.667] u'signature': {u'hash': Binary('\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 0),
[2017/10/01 16:47:46.667] u'keyId': 0L}},
[2017/10/01 16:47:46.667] u'counts': {u'emit': 6, u'input': 4, u'output': 3, u'reduce': 2},
[2017/10/01 16:47:46.685] u'ok': 1.0,
[2017/10/01 16:47:46.685] u'operationTime': Timestamp(1506890866, 5748),
[2017/10/01 16:47:46.685] u'result': {u'collection': u'results', u'db': u'outdb'},
[2017/10/01 16:47:46.685] u'timeMillis': 29}
[2017/10/01 16:47:46.685] **********************************************************************
The output format has changed. We can use ellipses in the output example to fix this.