Skip to content

Commit

Permalink
Merge pull request #9153 from tk0miya/9082_python3.10.0a7
Browse files Browse the repository at this point in the history
Revert "test: Disable testing with python3.10"
  • Loading branch information
tk0miya committed May 5, 2021
2 parents 43434a0 + 531a5ae commit 77da494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
python: 3.9
docutils: du17
coverage: "--cov ./ --cov-append --cov-config setup.cfg"
# - name: py310-dev
# python: 3.10-dev
# docutils: du16
- name: py310-dev
python: 3.10-dev
docutils: du17
env:
PYTEST_ADDOPTS: ${{ matrix.coverage }}

Expand Down
5 changes: 1 addition & 4 deletions tests/test_util_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ def test_signature_annotations():

# Instance annotations
sig = inspect.signature(f11)
if sys.version_info < (3, 10):
assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None'
else:
assert stringify_signature(sig) == '(x: CustomAnnotation(), y: 123) -> None'
assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None'

# tuple with more than two items
sig = inspect.signature(f12)
Expand Down

0 comments on commit 77da494

Please sign in to comment.