Skip to content

Commit

Permalink
fix: Fix Warning messages (acts-project#3679)
Browse files Browse the repository at this point in the history
Fix following messages:
```console
/__w/acts/acts/build/../CI/test_coverage.py:44: SyntaxWarning: invalid escape sequence '\d'
  map(int, re.match("gcovr (\d+\.\d+)", gcovr_version_text).group(1).split("."))
/__w/acts/acts/build/../CI/test_coverage.py:66: SyntaxWarning: invalid escape sequence '\.'
  excludes = ["-e", "../Tests/", "-e", ".*json\.hpp"]
```
  • Loading branch information
CarloVarni authored Oct 2, 2024
1 parent af00555 commit d468122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CI/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def call(cmd):

ret, gcovr_version_text = check_output(["gcovr", "--version"])
gcovr_version = tuple(
map(int, re.match("gcovr (\d+\.\d+)", gcovr_version_text).group(1).split("."))
map(int, re.match(r"gcovr (\d+\.\d+)", gcovr_version_text).group(1).split("."))
)

extra_flags = []
Expand All @@ -63,7 +63,7 @@ def call(cmd):
if not os.path.exists(coverage_dir):
os.makedirs(coverage_dir)

excludes = ["-e", "../Tests/", "-e", ".*json\.hpp"]
excludes = ["-e", "../Tests/", "-e", r".*json\.hpp"]

# create the html report
call(
Expand Down

0 comments on commit d468122

Please sign in to comment.