Commit 203c89aa authored by Stefan Behnel's avatar Stefan Behnel

exclude test in Py2.4

parent db02f8b0
......@@ -186,6 +186,7 @@ VER_DEP_MODULES = {
'run.relativeimport_T542',
'run.relativeimport_star_T542',
'run.initial_file_path', # relative import
'run.pynumber_subtype_conversion', # bug in Py2.4
]),
(2,6) : (operator.lt, lambda x: x in ['run.print_function',
'run.language_level', # print function
......
......@@ -137,37 +137,3 @@ def double_to_double_int(double x):
"""
cdef double r = int(x)
return r
class MyFloat(float):
"""
>>> x = MyFloat(1.0)
>>> x
1.0
>>> float(x)
12.0
>>> x.float()
12.0
"""
def __float__(self):
return 12.0
def float(self):
return float(self)
class MyInt(int):
"""
>>> x = MyInt(1)
>>> x
1
>>> int(x)
2
>>> x.int()
2
"""
def __int__(self):
return 2
def int(self):
return int(self)
# mode: run
# tag: python, float, builtin
class MyFloat(float):
"""
>>> x = MyFloat(1.0)
>>> x
1.0
>>> float(x)
12.0
>>> x.float()
12.0
"""
def __float__(self):
return 12.0
def float(self):
return float(self)
class MyInt(int):
"""
>>> x = MyInt(1)
>>> x
1
>>> int(x)
2
>>> x.int()
2
"""
def __int__(self):
return 2
def int(self):
return int(self)
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