MCPcopy Index your code
hub / github.com/python/cpython / notifyTestFinished

Method notifyTestFinished

Tools/unittestgui/unittestgui.py:405–410  ·  view source on GitHub ↗
(self, test)

Source from the content-addressed store, hash-verified

403
404
405 def notifyTestFinished(self, test):
406 self.remainingCountVar.set(self.remainingCountVar.get() - 1)
407 self.runCountVar.set(1 + self.runCountVar.get())
408 fractionDone = float(self.runCountVar.get())/float(self.totalTests)
409 fillColor = len(self.errorInfo) and "red" or "green"
410 self.progressBar.setProgressFraction(fractionDone, fillColor)
411
412 def showSelectedError(self):
413 selection = self.errorListbox.curselection()

Callers 1

stopTestMethod · 0.45

Calls 3

setProgressFractionMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected