summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscoder <stefan_ml@behnel.de>2017-10-29 18:52:05 +0100
committerGitHub <noreply@github.com>2017-10-29 18:52:05 +0100
commite68c5668bfa4c796da9f2133db5875a062e6431c (patch)
tree5b9db1042d1c0c9798000a13d4bf875b82b695b4
parent313f0a86af0cd1fa869b157a8326c46ae0cfa0a6 (diff)
parent78c5fe5ecead473f40652e55c8a152e5d91508f2 (diff)
downloadcython-e68c5668bfa4c796da9f2133db5875a062e6431c.tar.gz
Merge pull request #1963 from smartsammler/fix-ctyes_def_test
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)
"""