summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Gethmann <julian.gethmann@kit.edu>2017-10-28 13:01:49 +0200
committerJulian Gethmann <julian.gethmann@kit.edu>2017-10-28 13:01:49 +0200
commit78c5fe5ecead473f40652e55c8a152e5d91508f2 (patch)
treea66b968324bec3560a181945def0cc3fc947c4e9
parent3307467278f9121afc3d897df850883f2d6f9355 (diff)
downloadcython-78c5fe5ecead473f40652e55c8a152e5d91508f2.tar.gz
Fix annotation_typing test case
-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)
"""