Commit b900281b authored by Stefan Behnel's avatar Stefan Behnel

added failing test for optimised float .conjugate() method

parent 68b35ca1
......@@ -19,6 +19,7 @@ class_scope_T671
slice2_T636
builtin_subtype_methods_T653
dict_values_in_expression
builtin_float
# CPython regression tests that don't current work:
pyregr.test_signal
......
import sys
def empty_float():
"""
>>> float()
0.0
>>> empty_float()
0.0
"""
x = float()
return x
def float_conjugate():
"""
>>> float_call_conjugate()
1.5
"""
if sys.version_info >= (2,6):
x = 1.5 .conjugate()
else:
x = 1.5
return x
def float_call_conjugate():
"""
>>> float_call_conjugate()
1.5
"""
if sys.version_info >= (2,6):
x = float(1.5).conjugate()
else:
x = 1.5
return 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