mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Upgrade python on Circle CI to 3.5
This commit is contained in:
@@ -6,6 +6,6 @@ jobs:
|
|||||||
working_directory: /sphinx
|
working_directory: /sphinx
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: /python3.4/bin/pip install -U pip setuptools
|
- run: /python3.5/bin/pip install -U pip setuptools
|
||||||
- run: /python3.4/bin/pip install -U .[test,websupport]
|
- run: /python3.5/bin/pip install -U .[test,websupport]
|
||||||
- run: make test PYTHON=/python3.4/bin/python
|
- run: make test PYTHON=/python3.5/bin/python
|
||||||
|
@@ -299,7 +299,10 @@ def test_Signature_annotations():
|
|||||||
|
|
||||||
# type hints by string
|
# type hints by string
|
||||||
sig = inspect.Signature(Node.children).format_args()
|
sig = inspect.Signature(Node.children).format_args()
|
||||||
assert sig == '(self) -> List[typing_test_data.Node]'
|
if (3, 5, 0) <= sys.version_info < (3, 5, 3):
|
||||||
|
assert sig == '(self) -> List[Node]'
|
||||||
|
else:
|
||||||
|
assert sig == '(self) -> List[typing_test_data.Node]'
|
||||||
|
|
||||||
sig = inspect.Signature(Node.__init__).format_args()
|
sig = inspect.Signature(Node.__init__).format_args()
|
||||||
assert sig == '(self, parent: Optional[Node]) -> None'
|
assert sig == '(self, parent: Optional[Node]) -> None'
|
||||||
|
Reference in New Issue
Block a user