diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2011-01-03 17:00:11 (GMT) |
commit | 32e1d8340c05fa62ba51dbd942bdc09a21e65f6e (patch) | |
tree | 4523249e3c25efec0cc94a82a9392894282d3990 /Tools | |
parent | faa8c13ef43eda21a363524a7eb0ff1b361bbe67 (diff) | |
download | cpython-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')
-rw-r--r-- | Tools/unittestgui/unittestgui.py | 6 |
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): |