Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
"windows-py312",
"windows-py313",
"windows-py314",
"windows-py315",

"ubuntu-py310-unittest-asynctest",
"ubuntu-py310-unittest-twisted24",
Expand All @@ -77,12 +78,14 @@ jobs:
"ubuntu-py312",
"ubuntu-py313-pexpect",
"ubuntu-py314",
"ubuntu-py315",
"ubuntu-pypy3-xdist",

"macos-py310",
"macos-py312",
"macos-py313",
"macos-py314",
"macos-py315",

"doctesting",
"plugins",
Expand Down Expand Up @@ -141,6 +144,11 @@ jobs:
tox_env: "py314"
use_coverage: true

- name: "windows-py315"
python: "3.15"
os: windows-latest
tox_env: "py315"

# Use separate jobs for different unittest flavors (twisted, asynctest) to ensure proper coverage.
- name: "ubuntu-py310-unittest-asynctest"
python: "3.10"
Expand Down Expand Up @@ -208,6 +216,12 @@ jobs:
tox_env: "py314"
use_coverage: true

- name: "ubuntu-py315"
python: "3.15"
os: ubuntu-latest
tox_env: "py315"
use_coverage: true

- name: "ubuntu-pypy3-xdist"
python: "pypy-3.10"
os: ubuntu-latest
Expand Down Expand Up @@ -236,6 +250,11 @@ jobs:
os: macos-latest
tox_env: "py314-xdist"

- name: "macos-py315"
python: "3.15"
os: macos-latest
tox_env: "py315-xdist"

- name: "plugins"
python: "3.12"
os: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions changelog/14524.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add official Python 3.15 support.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
Expand Down Expand Up @@ -353,7 +354,7 @@ ignore = "W009"

[tool.pyproject-fmt]
indent = 4
max_supported_python = "3.14"
max_supported_python = "3.15"

[tool.pytest]
minversion = "2.0"
Expand Down Expand Up @@ -415,6 +416,8 @@ filterwarnings = [
# https://github.com/pytest-dev/pytest/issues/2366
# https://github.com/pytest-dev/pytest/pull/13057
'default::pytest.PytestFDWarning',
# https://github.com/pexpect/pexpect/issues/827
'ignore:.*use of forkpty\(\) may lead to deadlocks in the child:DeprecationWarning:ptyprocess.*',
]
pytester_example_dir = "testing/example_scripts"
markers = [
Expand Down
7 changes: 4 additions & 3 deletions testing/test_assertrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,9 +1082,10 @@ def test_dont_write_bytecode(self, pytester: Pytester, monkeypatch) -> None:
"""
import os
def test_no_bytecode():
assert "__pycache__" in __cached__
assert not os.path.exists(__cached__)
assert not os.path.exists(os.path.dirname(__cached__))"""
assert "__pycache__" in __spec__.cached
assert not os.path.exists(__spec__.cached)
assert not os.path.exists(os.path.dirname(__spec__.cached))
"""
)
monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1")
assert pytester.runpytest_subprocess().ret == 0
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist =
py312
py313
py314
py315
pypy3
py310-{pexpect,xdist,twisted24,twisted25,asynctest,numpy,pluggymain,pylib}
doctesting
Expand Down
Loading