correctly lookup __trunc__ and __floor__

This commit is contained in:
Benjamin Peterson 2010-07-01 15:16:55 +00:00
parent 6e73b19747
commit 8bb9cde6c0
3 changed files with 17 additions and 20 deletions

View file

@ -1,6 +1,7 @@
import builtins
import sys
import types
import math
import unittest
from copy import deepcopy
@ -1578,6 +1579,8 @@ order (MRO) for bases """
("__exit__", run_context, swallow, set(), {"__enter__" : iden}),
("__complex__", complex, complex_num, set(), {}),
("__format__", format, format_impl, set(), {}),
("__floor__", math.floor, zero, set(), {}),
("__trunc__", math.trunc, zero, set(), {}),
]
class Checker(object):