Greetings,

The following fix allows the test suit to complete successfully when $DISPLAY is not set.

16890 test suite can fail if DISPLAY is not set in non-C locales

diff -r 601cc09f180a -r 06fbb9d612c2 src/tests/gui/testutils.py
--- a/src/tests/gui/testutils.py        Mon Aug 23 15:29:04 2010 -0700
+++ b/src/tests/gui/testutils.py        Tue Aug 24 13:32:13 2010 -0700
@@ -59,3 +59,10 @@
         if window.get_accessible().get_n_accessible_children() != 0:
                 a11y_enabled = True
         return a11y_enabled
+
+if not check_for_gtk():
+        # If gtk isn't imported, this must be done to
+        # ensure that locale is setup properly.
+        # (This is necessary due to GNOME bug 132040).
+        import locale
+        locale.setlocale(locale.LC_ALL, "")

Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to