[Python-checkins] r85058 - in python/branches/release27-maint-ttk-debug-on-xp5: Lib/lib-tk/test/test_ttk/test_extensions.py Tools/buildbot/test.bat
hirokazu.yamamoto
python-checkins at python.org
Tue Sep 28 15:10:15 CEST 2010
Author: hirokazu.yamamoto
Date: Tue Sep 28 15:10:14 2010
New Revision: 85058
Log:
Try to determine where script hangs.
Modified:
python/branches/release27-maint-ttk-debug-on-xp5/Lib/lib-tk/test/test_ttk/test_extensions.py
python/branches/release27-maint-ttk-debug-on-xp5/Tools/buildbot/test.bat
Modified: python/branches/release27-maint-ttk-debug-on-xp5/Lib/lib-tk/test/test_ttk/test_extensions.py
==============================================================================
--- python/branches/release27-maint-ttk-debug-on-xp5/Lib/lib-tk/test/test_ttk/test_extensions.py (original)
+++ python/branches/release27-maint-ttk-debug-on-xp5/Lib/lib-tk/test/test_ttk/test_extensions.py Tue Sep 28 15:10:14 2010
@@ -2,6 +2,9 @@
import unittest
import Tkinter
import ttk
+import threading
+import thread
+import time
from test.test_support import requires, run_unittest
import support
@@ -17,7 +20,7 @@
support.root_withdraw()
- def test_widget_destroy(self):
+ def _test_widget_destroy(self):
# automatically created variable
x = ttk.LabeledScale()
var = x._variable._name
@@ -48,7 +51,7 @@
self.assertFalse(sys.last_type == Tkinter.TclError)
- def test_initialization(self):
+ def _test_initialization(self):
# master passing
x = ttk.LabeledScale()
self.assertEqual(x.master, Tkinter._default_root)
@@ -104,6 +107,13 @@
def test_horizontal_range(self):
+ def func():
+ time.sleep(60 * 5) # XXX: adjust here
+ thread.interrupt_main()
+
+ t = threading.Thread(target=func)
+ t.start()
+
lscale = ttk.LabeledScale(from_=0, to=10)
lscale.pack()
lscale.wait_visibility()
@@ -132,8 +142,9 @@
lscale.destroy()
+ t.join()
- def test_variable_change(self):
+ def _test_variable_change(self):
x = ttk.LabeledScale()
x.pack()
x.wait_visibility()
@@ -160,7 +171,7 @@
x.destroy()
- def test_resize(self):
+ def _test_resize(self):
x = ttk.LabeledScale()
x.pack(expand=True, fill='both')
x.wait_visibility()
@@ -268,7 +279,8 @@
optmenu.destroy()
-tests_gui = (LabeledScaleTest, OptionMenuTest)
+#tests_gui = (LabeledScaleTest, OptionMenuTest)
+tests_gui = (LabeledScaleTest,)
if __name__ == "__main__":
run_unittest(*tests_gui)
Modified: python/branches/release27-maint-ttk-debug-on-xp5/Tools/buildbot/test.bat
==============================================================================
--- python/branches/release27-maint-ttk-debug-on-xp5/Tools/buildbot/test.bat (original)
+++ python/branches/release27-maint-ttk-debug-on-xp5/Tools/buildbot/test.bat Tue Sep 28 15:10:14 2010
@@ -1,4 +1,4 @@
@rem Used by the buildbot "test" step.
cd PCbuild
-call rt.bat -d -q -uall -rw -v test_ttk_guionly
+call rt.bat -d -uall -v test_ttk_guionly
call rt.bat -d -q -uall -rw -x test_ttk_guionly
More information about the Python-checkins
mailing list