Commit 208a9bf8 authored by Stefan Behnel's avatar Stefan Behnel

Py2.4 test fixes

parent 03ea3932
...@@ -133,18 +133,18 @@ def multiplied_lists_nonconst(x): ...@@ -133,18 +133,18 @@ def multiplied_lists_nonconst(x):
>>> multiplied_lists_nonconst(0) == [1,2,3] * 0 >>> multiplied_lists_nonconst(0) == [1,2,3] * 0
True True
>>> [1,2,3] * 'abc' >>> [1,2,3] * 'abc' # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int...
>>> multiplied_nonconst_tuple_arg('abc') # doctest: +ELLIPSIS >>> multiplied_nonconst_tuple_arg('abc') # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int...
>>> [1,2,3] * 1.0 >>> [1,2,3] * 1.0 # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'float' TypeError: can't multiply sequence by non-int...
>>> multiplied_nonconst_tuple_arg(1.0) # doctest: +ELLIPSIS >>> multiplied_nonconst_tuple_arg(1.0) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'float' TypeError: can't multiply sequence by non-int...
""" """
return [1,2,3] * x return [1,2,3] * x
...@@ -209,18 +209,18 @@ def multiplied_nonconst_tuple_arg(x): ...@@ -209,18 +209,18 @@ def multiplied_nonconst_tuple_arg(x):
>>> multiplied_nonconst_tuple_arg(0) == (1,2) * 0 >>> multiplied_nonconst_tuple_arg(0) == (1,2) * 0
True True
>>> (1,2) * 'abc' >>> (1,2) * 'abc' # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int...
>>> multiplied_nonconst_tuple_arg('abc') # doctest: +ELLIPSIS >>> multiplied_nonconst_tuple_arg('abc') # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int...
>>> (1,2) * 1.0 >>> (1,2) * 1.0 # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'float' TypeError: can't multiply sequence by non-int...
>>> multiplied_nonconst_tuple_arg(1.0) # doctest: +ELLIPSIS >>> multiplied_nonconst_tuple_arg(1.0) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
TypeError: can't multiply sequence by non-int of type 'float' TypeError: can't multiply sequence by non-int...
""" """
return (1,2) * x return (1,2) * x
......
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