diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb5b08ac3..9386f2708 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,8 @@ jobs: include: - os: ubuntu-20.04 python-version: '3.6' + - os: macos-latest + python-version: '3.6' fail-fast: false steps: - name: "Software Install - Ubuntu" @@ -49,7 +51,7 @@ jobs: gawk \ gnu-sed \ pkg-config - - uses: actions/setup-python@v5.1.0 + - uses: actions/setup-python@v5.0.0 with: python-version: ${{ matrix.python-version }} - name: "Software Install - Python" diff --git a/test/test_scripts.py b/test/test_scripts.py index b1b5acaf8..03a061932 100644 --- a/test/test_scripts.py +++ b/test/test_scripts.py @@ -53,7 +53,7 @@ pass run_scripts_tests &= (sys.version_info[0] >= 3) -_LINT_RE = re.compile(r'(?P.*?)\:(?P\d+)\: \[(?P.*?)\] (?P.*)') +_LINT_RE = re.compile('(?P.*?)\:(?P\d+)\: \[(?P.*?)\] (?P.*)') @unittest.skipUnless(run_scripts_tests, "requires the 'pylint' module") class ScriptTest(unittest.TestCase): diff --git a/test/test_tutorial.py b/test/test_tutorial.py index e75c06c3b..767b2b7d2 100644 --- a/test/test_tutorial.py +++ b/test/test_tutorial.py @@ -32,6 +32,7 @@ import unittest import glob import sys +import re import os from tempfile import mkdtemp from shutil import rmtree diff --git a/tools/like_pmap.py b/tools/like_pmap.py index a35251f43..f5a2e2ee4 100755 --- a/tools/like_pmap.py +++ b/tools/like_pmap.py @@ -92,7 +92,7 @@ def main(args): raise RuntimeError("Cannot find NUMA memory info for PID: %i" % args.pid) # Parse out the anonymous entries in this file - _numaRE = re.compile(r'(?P[0-9a-f]+).*[(anon)|(mapped)]=(?P\d+).*(swapcache=(?P\d+))?.*N(?P\d+)=(?P\d+)') + _numaRE = re.compile('(?P[0-9a-f]+).*[(anon)|(mapped)]=(?P\d+).*(swapcache=(?P\d+))?.*N(?P\d+)=(?P\d+)') areas = {} files = {} for line in numaInfo.split('\n'):