4769 os.path.isfile("{0}.profile".format(tbasename)) |
4769 os.path.isfile("{0}.profile".format(tbasename)) |
4770 coEnable = ( |
4770 coEnable = ( |
4771 coEnable or |
4771 coEnable or |
4772 os.path.isfile("{0}.coverage".format(basename)) or |
4772 os.path.isfile("{0}.coverage".format(basename)) or |
4773 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
4773 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
4774 self.project.isPy3Project() |
4774 (self.project.isPy3Project() or |
|
4775 self.project.isPy2Project()) |
4775 |
4776 |
4776 # now check ourself |
4777 # now check ourself |
4777 fn = self.getFileName() |
4778 fn = self.getFileName() |
4778 if fn is not None: |
4779 if fn is not None: |
4779 tfn = Utilities.getTestFileName(fn) |
4780 tfn = Utilities.getTestFileName(fn) |
4784 os.path.isfile("{0}.profile".format(tbasename)) |
4785 os.path.isfile("{0}.profile".format(tbasename)) |
4785 coEnable = ( |
4786 coEnable = ( |
4786 coEnable or |
4787 coEnable or |
4787 os.path.isfile("{0}.coverage".format(basename)) or |
4788 os.path.isfile("{0}.coverage".format(basename)) or |
4788 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
4789 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
4789 self.isPy3File() |
4790 self.isPyFile() |
4790 |
4791 |
4791 # now check for syntax errors |
4792 # now check for syntax errors |
4792 if self.hasSyntaxErrors(): |
4793 if self.hasSyntaxErrors(): |
4793 coEnable = False |
4794 coEnable = False |
4794 |
4795 |