Skip to content

Commit c046f19

Browse files
authored
Merge pull request #125 from nicoddemus/fix-package-ci
Add support for Python 3.12
2 parents e26e310 + 81cfed2 commit c046f19

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

.github/workflows/test.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
python: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
79-
include:
80-
- python: "3.7"
81-
tox_env: "py37"
82-
- python: "3.8"
83-
tox_env: "py38"
84-
- python: "3.9"
85-
tox_env: "py39"
86-
- python: "3.10"
87-
tox_env: "py310"
88-
- python: "3.11-dev"
89-
tox_env: "py311"
78+
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
9079

9180
steps:
9281
- uses: actions/checkout@v2
@@ -115,4 +104,4 @@ jobs:
115104
- name: Test
116105
shell: bash
117106
run: |
118-
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
107+
tox run -e py --installpkg `find dist/*.tar.gz`

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Catch2: add support for catch version 3 ([#115](https://github.com/pytest-dev/pytest-cpp/pull/115))
44
- Catch2: support exception handling ([#117](https://github.com/pytest-dev/pytest-cpp/pull/117))
5+
- Added support for Python 3.12.
56

67
# 2.4.0 (2023-09-08)
78

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"Programming Language :: Python :: 3.9",
3636
"Programming Language :: Python :: 3.10",
3737
"Programming Language :: Python :: 3.11",
38+
"Programming Language :: Python :: 3.12",
3839
"Programming Language :: C++",
3940
"Topic :: Software Development :: Quality Assurance",
4041
"Topic :: Software Development :: Testing",

tests/test_pytest_cpp.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import subprocess
22
import sys
33
import tempfile
4+
from shutil import which
45

56
import pytest
6-
from distutils.spawn import find_executable
77

88
from pytest_cpp import error
99
from pytest_cpp.boost import BoostTestFacade
@@ -451,7 +451,7 @@ def test_argument_option_priority(testdir, exes):
451451

452452

453453
@pytest.mark.skipif(
454-
not find_executable("valgrind") or not find_executable("catchsegv"),
454+
not which("valgrind") or not which("catchsegv"),
455455
reason="Environment does not have required tools",
456456
)
457457
def test_google_cpp_harness_via_option(testdir, exes):
@@ -504,7 +504,7 @@ def test_boost_two_arguments_via_option(testdir, exes):
504504

505505

506506
@pytest.mark.skipif(
507-
not find_executable("valgrind") or not find_executable("catchsegv"),
507+
not which("valgrind") or not which("catchsegv"),
508508
reason="Environment does not have required tools",
509509
)
510510
def test_boost_cpp_harness_via_option(testdir, exes):

0 commit comments

Comments
 (0)