Skip to content

Commit

Permalink
Add support for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Mar 9, 2022
1 parent a5790d2 commit 8f11d65
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build_and_test:
strategy:
matrix:
python-version: [3.8, 3.9] # oldest and most recent version supported
python-version: [3.8, '3.10'] # oldest and most recent version supported
name: Build and smoke test
runs-on: ubuntu-20.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build_and_test:
strategy:
matrix:
python-version: [3.8, 3.9] # oldest and most recent version supported
python-version: [3.8, '3.10'] # oldest and most recent version supported
name: Run Python test suite
runs-on: ubuntu-20.04
steps:
Expand Down
6 changes: 5 additions & 1 deletion binary_gentoo/internal/cli/tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under GNU Affero GPL version 3 or later

import os
import sys
from io import StringIO
from tempfile import TemporaryDirectory
from textwrap import dedent
Expand Down Expand Up @@ -240,7 +241,10 @@ def test_help(self, *argv): # plain smoke test
with self.assertRaises(SystemExit) as catcher:
main()
self.assertEqual(catcher.exception.args, (0, )) # i.e. success
self.assertIn('optional arguments:', stdout_mock.getvalue())
if sys.version_info >= (3, 10):
self.assertIn('options:', stdout_mock.getvalue())
else:
self.assertIn('optional arguments:', stdout_mock.getvalue())

def test_list_failure_empty_directory(self): # just something that touches beyond argparse
with TemporaryDirectory() as tempdir:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3 :: Only',
])

0 comments on commit 8f11d65

Please sign in to comment.