gnome-python-desktop r544 - in trunk: tests totem
- From: gjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-python-desktop r544 - in trunk: tests totem
- Date: Mon, 23 Feb 2009 18:51:55 +0000 (UTC)
Author: gjc
Date: Mon Feb 23 18:51:55 2009
New Revision: 544
URL: http://svn.gnome.org/viewvc/gnome-python-desktop?rev=544&view=rev
Log:
Add bug #571829 test case
Modified:
trunk/tests/common.py
trunk/totem/plparsermodule.c
Modified: trunk/tests/common.py
==============================================================================
--- trunk/tests/common.py (original)
+++ trunk/tests/common.py Mon Feb 23 18:51:55 2009
@@ -1,14 +1,16 @@
import os
import sys
+import gobject
+gobject.threads_init()
modules = [
"gnomeapplet",
"gnomeprint",
- ("gnomeprint.ui", "gnomeprint"),
+ ("ui", "gnomeprint"),
"gtksourceview",
"wnck",
- ("totem.plparser", "totem"),
+ ("plparser", "totem"),
"gtop",
"nautilusburn",
"mediaprofiles",
@@ -16,8 +18,8 @@
"rsvg",
"gnomekeyring",
"gnomedesktop",
- ("evolution.ebook", "evolution"),
- ("evolution.ecal", "evolution"),
+ ("ebook", "evolution"),
+ ("ecal", "evolution"),
"evince",
]
@@ -35,7 +37,7 @@
sys.path.insert(0, os.path.join(builddir, dirname))
print "Trying to import module %s... " % (module,),
try:
- __import__(module) # try to import the module to catch undefined symbols
+ mod = __import__(module) # try to import the module to catch undefined symbols
except ImportError, ex:
if ex.args[0].startswith("No module named"):
print "not found"
@@ -43,6 +45,7 @@
raise
else:
print "ok."
+ globals()[module] = mod
if not no_import_hooks:
ltihooks.uninstall()
Modified: trunk/totem/plparsermodule.c
==============================================================================
--- trunk/totem/plparsermodule.c (original)
+++ trunk/totem/plparsermodule.c Mon Feb 23 18:51:55 2009
@@ -101,7 +101,7 @@
"could not import gnomevfs");
return;
}
- m = Py_InitModule("totem.plparser", pyplparser_functions);
+ m = Py_InitModule("plparser", pyplparser_functions);
d = PyModule_GetDict(m);
pyplparser_register_classes(d);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]