summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-10-29 18:57:20 +0100
committerStefan Behnel <stefan_ml@behnel.de>2017-10-29 18:57:20 +0100
commit0a4f732fcf4b5128e5eff4e976778cb6256dbaf3 (patch)
tree2b84eed7c05957cf284b6280642daa21f0384201
parent1e66160ed8fae9d836bd2b0047f11ce27c946a9b (diff)
parente68c5668bfa4c796da9f2133db5875a062e6431c (diff)
downloadcython-0a4f732fcf4b5128e5eff4e976778cb6256dbaf3.tar.gz
Merge branch 'master' of git+ssh://github.com/cython/cython
-rw-r--r--tests/run/annotation_typing.pyx10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run/annotation_typing.pyx b/tests/run/annotation_typing.pyx
index c8a3b04ba..cda23c29d 100644
--- a/tests/run/annotation_typing.pyx
+++ b/tests/run/annotation_typing.pyx
@@ -87,13 +87,13 @@ def pytypes_cdef(a, b=2, c=3, d=4):
def ctypes_def(a: list, b: cython.int = 2, c: cython.long = 3, d: cython.float = 4) -> list:
"""
- >>> pytypes_def([1])
- ('list object', 'Python object', 'Python object', 'double')
+ >>> ctypes_def([1])
+ ('list object', 'int', 'long', 'float')
[1, 2, 3, 4.0]
- >>> pytypes_def([1], 3)
- ('list object', 'Python object', 'Python object', 'double')
+ >>> ctypes_def([1], 3)
+ ('list object', 'int', 'long', 'float')
[1, 3, 3, 4.0]
- >>> pytypes_def(123)
+ >>> ctypes_def(123)
Traceback (most recent call last):
TypeError: Argument 'a' has incorrect type (expected list, got int)
"""