public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/pymongo/files: pymongo-2.5.1-greenlet.patch
@ 2013-05-28 18:24 Ian Delaney (idella4)
  0 siblings, 0 replies; only message in thread
From: Ian Delaney (idella4) @ 2013-05-28 18:24 UTC (permalink / raw
  To: gentoo-commits

idella4     13/05/28 18:24:33

  Added:                pymongo-2.5.1-greenlet.patch
  Log:
  patch to fix test in py2
  
  (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

Revision  Changes    Path
1.1                  dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch?rev=1.1&content-type=text/plain

Index: pymongo-2.5.1-greenlet.patch
===================================================================
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()






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-28 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 18:24 [gentoo-commits] gentoo-x86 commit in dev-python/pymongo/files: pymongo-2.5.1-greenlet.patch Ian Delaney (idella4)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox