Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ats/atsMachines/lcBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def getBaseHostName(hostname):
"get base host name without digits"
host = realHostName(hostname)
# get non-digit part of node name
wordpat = re.compile('(^[a-zA-Z_]*)(\d*)').search
wordpat = re.compile(r'(^[a-zA-Z_]*)(\d*)').search
basehost = wordpat(host).group(1)
return basehost

Expand Down
2 changes: 1 addition & 1 deletion ats/atsMachines/slurmProcessorScheduled.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def init(self):
tarray=tstr.split()
SlurmProcessorScheduled.slurm_version_str=tarray[1]
log('SLURM VERSION STRING', SlurmProcessorScheduled.slurm_version_str)
tarray=re.split('[\.\-]',SlurmProcessorScheduled.slurm_version_str)
tarray=re.split(r'[\.\-]',SlurmProcessorScheduled.slurm_version_str)
SlurmProcessorScheduled.slurm_version_int=(int(tarray[0]) * 1000) + (int(tarray[1]) * 100) + (int(tarray[2]))
log('SLURM VERSION NUMBER', SlurmProcessorScheduled.slurm_version_int)

Expand Down
2 changes: 1 addition & 1 deletion ats/reportutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def atsrToJUnit(atsrFile=None,junitOut=None,build=True ):
def cleanTestCaseName( test ):
'''Remove all special chars from the name so it's readable to junit parser. '''
import re
pattern = re.compile('([^\s\w]|_)+')
pattern = re.compile(r'([^\s\w]|_)+')
testname = pattern.sub('', test.name)
return testname

Expand Down