Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pymongo/files: pymongo-2.5.1-greenlet.patch
Date: Tue, 28 May 2013 18:24:38
Message-Id: 20130528182433.2E99A2171E@flycatcher.gentoo.org
1 idella4 13/05/28 18:24:33
2
3 Added: pymongo-2.5.1-greenlet.patch
4 Log:
5 patch to fix test in py2
6
7 (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
8
9 Revision Changes Path
10 1.1 dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/files/pymongo-2.5.1-greenlet.patch?rev=1.1&view=markup
13 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
14
15 Index: pymongo-2.5.1-greenlet.patch
16 ===================================================================
17 https://github.com/mongodb/mongo-python-driver/commit/519733457fb456f64b49ae66ffa6a401e1e72f24
18 diff --git a/test/test_pooling_base.py b/test/test_pooling_base.py
19 index 2190f38..d396b56 100644
20 --- a/test/test_pooling_base.py
21 +++ b/test/test_pooling_base.py
22 @@ -700,6 +700,10 @@ def leak_request():
23 g.start()
24 g.join(1)
25 self.assertTrue(g.ready(), "Greenlet is hung")
26 +
27 + # In Gevent after 0.13.8, join() returns before the Greenlet.link
28 + # callback fires. Give it a moment to reclaim the socket.
29 + gevent.sleep(0.1)
30 else:
31 lock = thread.allocate_lock()
32 lock.acquire()