Skip to content

Commit

Permalink
Merge pull request #90 from cjwatson/py313
Browse files Browse the repository at this point in the history
Add support for Python 3.13
  • Loading branch information
jelmer authored Dec 24, 2024
2 parents b12928b + 947ac0e commit 245fa9e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.8", "pypy-3.9"]
steps:
- name: Checkout source code
uses: actions/checkout@v3
Expand Down
16 changes: 1 addition & 15 deletions fixtures/tests/_fixtures/test_popen.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def test_handles_all_Popen_args(self):
pass_fds="pass_fds",
encoding="encoding",
errors="errors",
text="text",
)
if sys.version_info >= (3, 7):
all_args["text"] = "text"
if sys.version_info >= (3, 9):
all_args["group"] = "group"
all_args["extra_groups"] = "extra_groups"
Expand All @@ -100,16 +99,6 @@ def get_info(proc_args):
fixture = self.useFixture(FakePopen(get_info))
fixture(**all_args)

@testtools.skipUnless(
sys.version_info < (3, 7), "only relevant on Python <3.7"
)
def test_rejects_3_7_args_on_older_versions(self):
fixture = self.useFixture(FakePopen(lambda proc_args: {}))
with testtools.ExpectedException(
TypeError, r".* got an unexpected keyword argument 'text'"
):
fixture(args="args", text=True)

@testtools.skipUnless(
sys.version_info < (3, 9), "only relevant on Python <3.9"
)
Expand Down Expand Up @@ -175,9 +164,6 @@ def test_function_signature(self):
fake_kwargs.remove('user')
fake_kwargs.remove('umask')

if sys.version_info < (3, 7):
fake_kwargs.remove('text')

self.assertSetEqual(
fake_kwargs,
real_kwargs,
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Quality Assurance
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311,py312,pypy3
envlist = py38,py39,py310,py311,py312,py313,pypy3
minversion = 3.1

[testenv]
Expand Down

0 comments on commit 245fa9e

Please sign in to comment.