1 |
eva 10/11/05 22:06:04 |
2 |
|
3 |
Added: pygobject-2.21.4-make_check.patch |
4 |
Log: |
5 |
Version bump. Enable introspection support but disable related tests, they seem broken. |
6 |
|
7 |
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/pygobject/files/pygobject-2.21.4-make_check.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-2.21.4-make_check.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pygobject/files/pygobject-2.21.4-make_check.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pygobject-2.21.4-make_check.patch |
16 |
=================================================================== |
17 |
--- a/tests/Makefile.am |
18 |
+++ b/tests/Makefile.am |
19 |
@@ -12,7 +12,7 @@ EXTRA_DIST = \ |
20 |
test-thread.h \ |
21 |
test-unknown.h |
22 |
|
23 |
-noinst_LTLIBRARIES = testhelper.la |
24 |
+check_LTLIBRARIES = testhelper.la |
25 |
linked_LIBS = testhelper.la |
26 |
|
27 |
testhelper_la_LDFLAGS = -module -avoid-version |
28 |
@@ -46,13 +46,11 @@ endif |
29 |
testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES) |
30 |
$(LINK) -rpath $(pkgpyexecdir) $(testhelper_la_LDFLAGS) $(testhelper_la_OBJECTS) $(testhelper_la_LIBADD) $(LIBS) |
31 |
|
32 |
-check-local: $(LTLIBRARIES:.la=.so) |
33 |
+check-local: $(check_LTLIBRARIES:.la=.so) |
34 |
$(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py $(top_builddir) $(tests) |
35 |
|
36 |
-all: $(LTLIBRARIES:.la=.so) |
37 |
- |
38 |
clean-local: |
39 |
- rm -f $(LTLIBRARIES:.la=.so) |
40 |
+ rm -f $(check_LTLIBRARIES:.la=.so) |
41 |
|
42 |
.la.so: |
43 |
$(LN_S) .libs/$@ $@ || true |
44 |
--- a/tests/runtests.py |
45 |
+++ b/tests/runtests.py |
46 |
@@ -6,6 +6,9 @@ import unittest |
47 |
|
48 |
import common |
49 |
|
50 |
+# Some tests fail with translated messages. |
51 |
+os.environ["LC_ALL"] = "C" |
52 |
+ |
53 |
program = None |
54 |
if len(sys.argv) < 2: |
55 |
raise ValueError('Need at least 2 parameters: runtests.py <build-dir> ' |
56 |
--- a/tests/test_gio.py |
57 |
+++ b/tests/test_gio.py |
58 |
@@ -410,9 +410,10 @@ class TestFile(unittest.TestCase): |
59 |
|
60 |
def testQueryWritableNamespaces(self): |
61 |
infolist = self.file.query_writable_namespaces() |
62 |
- for info in infolist: |
63 |
- if info.name == "xattr": |
64 |
- self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING) |
65 |
+ if infolist: |
66 |
+ for info in infolist: |
67 |
+ if info.name == "xattr": |
68 |
+ self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING) |
69 |
|
70 |
def testSetAttribute(self): |
71 |
self._f.write("testing attributes") |