summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2022-07-03 11:23:34 +0100
committerGitHub <noreply@github.com>2022-07-03 11:23:34 +0100
commit1c0691f7720976a2ee9c471e071b6c8a0341eb7b (patch)
treea3406b8bd40bd42326a8de64fd56a7a34487d790
parenta70b9d3cde2a0f62f0ebf7a8a28f32af5de99e8c (diff)
downloadcython-1c0691f7720976a2ee9c471e071b6c8a0341eb7b.tar.gz
Fix tuple*float test on PyPy
Test added in 5c900c59d03f23f7329d6e68e114e4a277112916 PyPy gives a slightly different error message for the unsupported operation
-rw-r--r--tests/run/pep448_extended_unpacking.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/pep448_extended_unpacking.pyx b/tests/run/pep448_extended_unpacking.pyx
index 4411d7e79..85d22a86c 100644
--- a/tests/run/pep448_extended_unpacking.pyx
+++ b/tests/run/pep448_extended_unpacking.pyx
@@ -195,10 +195,10 @@ def unpack_list_tuple_mult():
def unpack_list_tuple_bad_mult():
"""
- >>> unpack_list_tuple_bad_mult()
+ >>> unpack_list_tuple_bad_mult() # doctest: +ELLIPSIS
Traceback (most recent call last):
...
- TypeError: can't multiply sequence by non-int of type 'float'
+ TypeError: ... 'float'
"""
return [*(1,) * 1.5]