eric6/UI/UserInterface.py

branch
maintenance
changeset 7117
4038dc8c58c9
parent 7051
a6dbc7c847cb
parent 7072
66ef92f769bf
child 7214
f434af227a41
--- a/eric6/UI/UserInterface.py	Sun Jul 07 11:27:33 2019 +0200
+++ b/eric6/UI/UserInterface.py	Sat Aug 03 11:33:35 2019 +0200
@@ -4713,6 +4713,7 @@
         Private slot for displaying the unittest dialog and run the current
         project.
         """
+        prog = None
         fn = self.project.getMainScript(True)
         if fn:
             tfn = Utilities.getTestFileName(fn)
@@ -4720,14 +4721,6 @@
                 prog = tfn
             else:
                 prog = fn
-        else:
-            E5MessageBox.critical(
-                self,
-                self.tr("Unittest Project"),
-                self.tr(
-                    "There is no main script defined for the"
-                    " current project. Aborting"))
-            return
         
         self.__unittest()
         self.unittestDialog.setProjectMode(True)

eric ide

mercurial