Commit 1c0691f7 authored by da-woods's avatar da-woods Committed by GitHub

Fix tuple*float test on PyPy

Test added in 5c900c59

PyPy gives a slightly different error message for the unsupported operation
parent a70b9d3c
...@@ -195,10 +195,10 @@ def unpack_list_tuple_mult(): ...@@ -195,10 +195,10 @@ def unpack_list_tuple_mult():
def unpack_list_tuple_bad_mult(): def unpack_list_tuple_bad_mult():
""" """
>>> unpack_list_tuple_bad_mult() >>> unpack_list_tuple_bad_mult() # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ...
TypeError: can't multiply sequence by non-int of type 'float' TypeError: ... 'float'
""" """
return [*(1,) * 1.5] return [*(1,) * 1.5]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment