From: | "Corentin Chary (iksaif)" <iksaif@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/kombu/files: kombu-2.1.1-add-assertIsInstance-with-unittest.patch |
Date: | Wed, 30 May 2012 06:37:44 |
Message-Id: | 20120530063719.38D912004C@flycatcher.gentoo.org |
1 | iksaif 12/05/30 06:37:19 |
2 | |
3 | Added: |
4 | kombu-2.1.1-add-assertIsInstance-with-unittest.patch |
5 | Log: |
6 | New ebuild for kombu. |
7 | |
8 | (Portage version: 2.1.10.63/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: kombu-2.1.1-add-assertIsInstance-with-unittest.patch |
17 | =================================================================== |
18 | --- a/kombu/tests/utils.py 2012-02-07 17:57:27.000000000 +0100 |
19 | +++ b/kombu/tests/utils.py 2012-02-28 16:09:43.687489572 +0100 |
20 | @@ -23,6 +23,8 @@ |
21 | |
22 | if not hasattr(unittest.TestCase, "assertItemsEqual"): |
23 | assertItemsEqual = unittest.TestCase.assertSameElements |
24 | + if not hasattr(unittest.TestCase, "assertIsInstance"): |
25 | + assertIsInstance = lambda inst, obj, cls: unittest.TestCase.assertTrue(inst, isinstance(obj, cls)) |
26 | |
27 | |
28 | class Mock(mock.Mock): |