summaryrefslogtreecommitdiff
path: root/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch')
-rw-r--r--dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch b/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch
new file mode 100644
index 00000000000..dde6228f342
--- /dev/null
+++ b/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch
@@ -0,0 +1,17 @@
+https://github.com/mongodb/mongo-python-driver/commit/519733457fb456f64b49ae66ffa6a401e1e72f24
+diff --git a/test/test_pooling_base.py b/test/test_pooling_base.py
+index 2190f38..d396b56 100644
+--- a/test/test_pooling_base.py
++++ b/test/test_pooling_base.py
+@@ -700,6 +700,10 @@ def leak_request():
+ g.start()
+ g.join(1)
+ self.assertTrue(g.ready(), "Greenlet is hung")
++
++ # In Gevent after 0.13.8, join() returns before the Greenlet.link
++ # callback fires. Give it a moment to reclaim the socket.
++ gevent.sleep(0.1)
+ else:
+ lock = thread.allocate_lock()
+ lock.acquire()
+