def runClicked(self):
        "To be called in response to user choosing to run a test"
        if self.running: return
        self.running = 1 
        self.currentTestIndex = 0
        while self.errorListbox.size():
            self.errorListbox.delete(0)
        testName = self.getSelectedTestName()
        if not testName:
            self.errorDialog("Test name entry", "You must enter a test name")
            return
        if self.rollbackImporter:
            self.rollbackImporter.rollbackImports()
        self.rollbackImporter = RollbackImporter()
        try:
            self.test = unittest.defaultTestLoader.loadTestsFromName(testName)
        except:
            exc_type, exc_value, exc_tb = sys.exc_info()
            apply(traceback.print_exception,sys.exc_info())
            self.errorDialog(testName % "Unable to run test '%s'",
                             "Error loading specified test: %s, %s" % \
                             (exc_type, exc_value))
            return
        self.showtests(self.test)
        self.currentResult = GUITestResult(self)
        self.totalTests = self.test.countTestCases()
        self.notifyRunning()
        self.thread1 = threading.Thread(target=self.bgRunner)
        self.thread1.start()
        self.theLoop()
dataset/ETHPy150Open radekstepan/FlaskBudget/tests_gui.py/EnhancedGUIRunner.runClicked/swapped operands of `%`