From dcb7debf9eef72cd6325cd854f26ca832f91ace2 Mon Sep 17 00:00:00 2001 From: "Justin M. LaPre" Date: Thu, 9 May 2024 14:30:36 +0000 Subject: [PATCH] memHierarchy_memHA: convert RE to raw string --- .../memHierarchy/tests/testsuite_default_memHierarchy_memHA.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sst/elements/memHierarchy/tests/testsuite_default_memHierarchy_memHA.py b/src/sst/elements/memHierarchy/tests/testsuite_default_memHierarchy_memHA.py index acaf0d0a4b..6f898d8ded 100644 --- a/src/sst/elements/memHierarchy/tests/testsuite_default_memHierarchy_memHA.py +++ b/src/sst/elements/memHierarchy/tests/testsuite_default_memHierarchy_memHA.py @@ -3,6 +3,7 @@ from sst_unittest import * from sst_unittest_support import * import os.path +import re ################################################################################ # Code to support a single instance module initialize, must be called setUp method @@ -283,7 +284,7 @@ def _remove_lines_cleanup_file(self, remove_strs, in_file, out_file = None): # Currently handles console output format only and integer statistic formats # Stats are parsed into [component_name, stat_name, sum, sumSQ, count, min, max] def _is_stat(self, line): - 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