summaryrefslogtreecommitdiffstats
path: root/Tools/unittestgui
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2011-01-03 17:00:11 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2011-01-03 17:00:11 (GMT)
commit32e1d8340c05fa62ba51dbd942bdc09a21e65f6e (patch)
tree4523249e3c25efec0cc94a82a9392894282d3990 /Tools/unittestgui
parentfaa8c13ef43eda21a363524a7eb0ff1b361bbe67 (diff)
downloadcpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.zip
cpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.tar.gz
cpython-32e1d8340c05fa62ba51dbd942bdc09a21e65f6e.tar.bz2
Enable unittest.TestCase to be instantiated without providing a method name.
Changed unittestgui to show number of discovered tests in the status bar.
Diffstat (limited to 'Tools/unittestgui')
-rw-r--r--Tools/unittestgui/unittestgui.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/unittestgui/unittestgui.py b/Tools/unittestgui/unittestgui.py
index 0c48b49..b526646 100644
--- a/Tools/unittestgui/unittestgui.py
+++ b/Tools/unittestgui/unittestgui.py
@@ -276,13 +276,15 @@ class TkTestRunner(BaseGUITestRunner):
self.test_file_glob_pattern = d.test_file_glob_pattern
def notifyTestsDiscovered(self, test_suite):
+ discovered = test_suite.countTestCases()
self.runCountVar.set(0)
self.failCountVar.set(0)
self.errorCountVar.set(0)
- self.remainingCountVar.set(test_suite.countTestCases())
+ self.remainingCountVar.set(discovered)
self.progressBar.setProgressFraction(0.0)
self.errorListbox.delete(0, tk.END)
- self.statusVar.set("Discovering tests from %s" % self.directory_to_read)
+ self.statusVar.set("Discovering tests from %s. Found: %s" %
+ (self.directory_to_read, discovered))
self.stopGoButton['state'] = tk.NORMAL
def createWidgets(self):