3977 basename = os.path.splitext(fn)[0] |
3977 basename = os.path.splitext(fn)[0] |
3978 tbasename = os.path.splitext(tfn)[0] |
3978 tbasename = os.path.splitext(tfn)[0] |
3979 prEnable = prEnable or \ |
3979 prEnable = prEnable or \ |
3980 os.path.isfile("{0}.profile".format(basename)) or \ |
3980 os.path.isfile("{0}.profile".format(basename)) or \ |
3981 os.path.isfile("{0}.profile".format(tbasename)) |
3981 os.path.isfile("{0}.profile".format(tbasename)) |
3982 coEnable = coEnable or \ |
3982 coEnable = (coEnable or \ |
3983 os.path.isfile("{0}.coverage".format(basename)) or \ |
3983 os.path.isfile("{0}.coverage".format(basename)) or \ |
3984 os.path.isfile("{0}.coverage".format(tbasename)) |
3984 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
|
3985 self.project.isPy3Project() |
3985 |
3986 |
3986 # now check ourself |
3987 # now check ourself |
3987 fn = self.getFileName() |
3988 fn = self.getFileName() |
3988 if fn is not None: |
3989 if fn is not None: |
3989 tfn = Utilities.getTestFileName(fn) |
3990 tfn = Utilities.getTestFileName(fn) |
3990 basename = os.path.splitext(fn)[0] |
3991 basename = os.path.splitext(fn)[0] |
3991 tbasename = os.path.splitext(tfn)[0] |
3992 tbasename = os.path.splitext(tfn)[0] |
3992 prEnable = prEnable or \ |
3993 prEnable = prEnable or \ |
3993 os.path.isfile("{0}.profile".format(basename)) or \ |
3994 os.path.isfile("{0}.profile".format(basename)) or \ |
3994 os.path.isfile("{0}.profile".format(tbasename)) |
3995 os.path.isfile("{0}.profile".format(tbasename)) |
3995 coEnable = coEnable or \ |
3996 coEnable = (coEnable or \ |
3996 os.path.isfile("{0}.coverage".format(basename)) or \ |
3997 os.path.isfile("{0}.coverage".format(basename)) or \ |
3997 os.path.isfile("{0}.coverage".format(tbasename)) |
3998 os.path.isfile("{0}.coverage".format(tbasename))) and \ |
|
3999 self.isPy3File() |
3998 |
4000 |
3999 # now check for syntax errors |
4001 # now check for syntax errors |
4000 if self.hasSyntaxErrors(): |
4002 if self.hasSyntaxErrors(): |
4001 coEnable = False |
4003 coEnable = False |
4002 |
4004 |