From 70a9b9a79b644774f83efbbf0ea47a47be629ea8 Mon Sep 17 00:00:00 2001 From: "Benjamin T. Liu" Date: Tue, 10 Mar 2026 09:02:15 -0700 Subject: [PATCH 1/2] Fix deprecation warning --- ats/atsMachines/slurmProcessorScheduled.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ats/atsMachines/slurmProcessorScheduled.py b/ats/atsMachines/slurmProcessorScheduled.py index 8a01b89..4b1d776 100644 --- a/ats/atsMachines/slurmProcessorScheduled.py +++ b/ats/atsMachines/slurmProcessorScheduled.py @@ -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) From 813f878290a4252957950dd89ede0f29a7d24eb9 Mon Sep 17 00:00:00 2001 From: "Benjamin T. Liu" Date: Tue, 10 Mar 2026 09:05:38 -0700 Subject: [PATCH 2/2] More backslashes --- ats/atsMachines/lcBatch.py | 2 +- ats/reportutils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ats/atsMachines/lcBatch.py b/ats/atsMachines/lcBatch.py index 48ee1aa..b54bfe0 100644 --- a/ats/atsMachines/lcBatch.py +++ b/ats/atsMachines/lcBatch.py @@ -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 diff --git a/ats/reportutils.py b/ats/reportutils.py index 8f74710..4578c95 100644 --- a/ats/reportutils.py +++ b/ats/reportutils.py @@ -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