diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 06a5b1f80f..ba0d6b9c03 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -29,7 +29,7 @@ jobs: # ubuntu-20.04 is the last version that supported python3.6 # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 os: [ubuntu-20.04] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] services: postgres: image: postgres diff --git a/tests/test_profiler.py b/tests/test_profiler.py index 52f3d6d7c8..137eac063a 100644 --- a/tests/test_profiler.py +++ b/tests/test_profiler.py @@ -302,7 +302,13 @@ def test_extract_stack_with_max_depth(depth, max_stack_depth, actual_depth): # index 0 contains the inner most frame on the stack, so the lamdba # should be at index `actual_depth` - assert stack[actual_depth][3] == "", actual_depth + if sys.version_info >= (3, 11): + assert ( + stack[actual_depth][3] + == "test_extract_stack_with_max_depth.." + ), actual_depth + else: + assert stack[actual_depth][3] == "", actual_depth def test_extract_stack_with_cache():