]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18365: convert buildbot errors to skips.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 13 Jul 2013 08:05:42 +0000 (04:05 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 13 Jul 2013 08:05:42 +0000 (04:05 -0400)
Lib/idlelib/idle_test/test_text.py

index 367bf38498636364bcab203723f45e93cfbe7d68..46af59917127fbf59a409ac87e5aa209c11c34e3 100644 (file)
@@ -216,7 +216,10 @@ class TkTextTest(TextTest, unittest.TestCase):
         requires('gui')
         from tkinter import Tk, Text
         cls.Text = Text
-        cls.root = Tk()
+        try:
+            cls.root = Tk()
+        except TclError as msg:
+            raise unittest.SkipTest('TclError: %s' % msg)
 
     @classmethod
     def tearDownClass(cls):