1 |
tetromino 13/10/02 19:09:24 |
2 |
|
3 |
Added: pygtk-2.24.0-test_dialog.patch |
4 |
Log: |
5 |
Fix test failure (bug #486602, thanks to eroen). |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/pygtk/files/pygtk-2.24.0-test_dialog.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/files/pygtk-2.24.0-test_dialog.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygtk/files/pygtk-2.24.0-test_dialog.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pygtk-2.24.0-test_dialog.patch |
16 |
=================================================================== |
17 |
From eb92ecdfe7e310499743a5686560e18bb48ef0f0 Mon Sep 17 00:00:00 2001 |
18 |
From: Alexandre Rostovtsev <tetromino@g.o> |
19 |
Date: Wed, 2 Oct 2013 14:51:20 -0400 |
20 |
Subject: [PATCH] tests: fix MessageDialogTest.testSubclass |
21 |
|
22 |
Don't check sub.__gtype__ until we set sub |
23 |
|
24 |
https://bugzilla.gnome.org/show_bug.cgi?id=709304 |
25 |
--- |
26 |
tests/test_dialog.py | 2 +- |
27 |
1 file changed, 1 insertion(+), 1 deletion(-) |
28 |
|
29 |
diff --git a/tests/test_dialog.py b/tests/test_dialog.py |
30 |
index a6a3ce5..6540be3 100644 |
31 |
--- a/tests/test_dialog.py |
32 |
+++ b/tests/test_dialog.py |
33 |
@@ -20,7 +20,7 @@ class MessageDialogTest(unittest.TestCase): |
34 |
print sub.__gtype__.name |
35 |
self.assertEqual(sub.__gtype__.name, 'GtkMessageDialog') |
36 |
|
37 |
- type('Sub', (gtk.MessageDialog,), {'__gtype_name__': 'SubDialog'}) |
38 |
+ sub = type('Sub', (gtk.MessageDialog,), {'__gtype_name__': 'SubDialog'}) |
39 |
self.assertEqual(sub.__gtype__.name, 'SubDialog') |
40 |
|
41 |
def testDialogLeak(self): |
42 |
-- |
43 |
1.8.3.2 |