diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 2a70021cf7..afb6e2e100 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -59,10 +59,10 @@ jobs: matrix: # Tests currently only pass on ubuntu on GitHub Actions. os: [ubuntu-latest] - python-version: ["3.10", "pypy-3.11", "3.13t"] + python-version: ["3.10", "pypy-3.11", "3.13t", "3.15"] mongodb-version: ["8.0"] - name: CPython ${{ matrix.python-version }}-${{ matrix.os }} + name: Python ${{ matrix.python-version }}-${{ matrix.os }} steps: - uses: actions/checkout@v6.0.2 with: diff --git a/test/test_fork.py b/test/test_fork.py index dad947d8c5..976acbb876 100644 --- a/test/test_fork.py +++ b/test/test_fork.py @@ -36,6 +36,10 @@ is_greenthread_patched(), "gevent does not support POSIX-style forking.", ) +@unittest.skipIf( + sys.version_info >= (3, 15), + "fork() in multi-threaded processes is deprecated in Python 3.15+ (PYTHON-5874)", +) class TestFork(IntegrationTest): def test_lock_client(self): # Forks the client with some items locked.