Skip to content

Commit

Permalink
use raw strings with regex (#1060)
Browse files Browse the repository at this point in the history
Replace \= with /= inside string
  • Loading branch information
jmlapre authored Mar 19, 2024
1 parent 08e1a33 commit 9bfe411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sst/core/testingframework/sst_unittest_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def testing_parse_stat(line):
Returns:
(list) list of [component, sum, sumSq, count, min, max] or 'None' if not a statistic
"""
cons_accum = re.compile(' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = ([\d.]+); SumSQ.\w+ = ([\d.]+); Count.\w+ = ([\d.]+); Min.\w+ = ([\d.]+); Max.\w+ = ([\d.]+);')
cons_accum = re.compile(r' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = ([\d.]+); SumSQ.\w+ = ([\d.]+); Count.\w+ = ([\d.]+); Min.\w+ = ([\d.]+); Max.\w+ = ([\d.]+);')
m = cons_accum.match(line)
if m == None:
return None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_UnitAlgebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
ua3_id_before = id(ua3)
ua3 /= ua2
if id(ua3) == ua3_id_before:
print("ERROR: \= operator returned the same object")
print("ERROR: /= operator returned the same object")
print(ua3.bestSI())
print(ua4.bestSI())

Expand Down

0 comments on commit 9bfe411

Please sign in to comment.