summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-23 20:46:13 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-23 20:46:13 +0200
commitec95d13d845dba0e2856dcf39197dd8cb99ca3a8 (patch)
treea0701e4c141f77a11f44f8a531ffd2a4bab97e04
parente7c7730c22921494bb50eabc0d0bdb0600e2ece9 (diff)
downloadcython-ec95d13d845dba0e2856dcf39197dd8cb99ca3a8.tar.gz
Extend test.
-rw-r--r--tests/run/type_inference.pyx5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run/type_inference.pyx b/tests/run/type_inference.pyx
index eb9016b00..3504c8525 100644
--- a/tests/run/type_inference.pyx
+++ b/tests/run/type_inference.pyx
@@ -292,11 +292,12 @@ def unpacking(x):
"""
>>> unpacking(0)
"""
- a, b, c, d = x, 1, 2.0, [3]
+ a, b, c, (d, e) = x, 1, 2.0, [3, [5, 6]]
assert typeof(a) == "Python object", typeof(a)
assert typeof(b) == "long", typeof(b)
assert typeof(c) == "double", typeof(c)
- assert typeof(d) == "list object", typeof(d)
+ assert typeof(d) == "long", typeof(d)
+ assert typeof(e) == "list object", typeof(e)
def star_unpacking(*x):