diff options
-rw-r--r-- | tests/common.py | 2 | ||||
-rw-r--r-- | tests/runtests.py | 2 | ||||
-rw-r--r-- | tests/test_radiobutton.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/common.py b/tests/common.py index 64fc6f4..e970461 100644 --- a/tests/common.py +++ b/tests/common.py @@ -15,7 +15,7 @@ def importModules(buildDir, srcDir): sys.path.insert(0, os.path.join(buildDir, 'gtk')) # testhelper sys.path.insert(0, os.path.join(buildDir, 'tests')) - + sys.argv.append('--g-fatal-warnings') import ltihooks gobject = importModule('gobject', buildDir, 'gobject/gobject.la') diff --git a/tests/runtests.py b/tests/runtests.py index a220799..3ae7185 100644 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -31,7 +31,7 @@ def gettestnames(): names = map(lambda x: x[:-3], files) map(names.remove, SKIP_FILES) return names - + suite = unittest.TestSuite() loader = unittest.TestLoader() diff --git a/tests/test_radiobutton.py b/tests/test_radiobutton.py index 98d86dd..f373166 100644 --- a/tests/test_radiobutton.py +++ b/tests/test_radiobutton.py @@ -1,6 +1,9 @@ import unittest +import sys +sys.argv.append('--g-fatal-warnings') from common import gtk +print gtk.gtk_version class RadioTest(unittest.TestCase): widget_type = None |