diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-07-01 15:16:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-07-01 15:16:55 (GMT) |
commit | 8bb9cde6c040fd1026b5f05d1ebdba19a8b149a8 (patch) | |
tree | 4677867143c72668580c7ba0b523c037c38fd3a1 /Lib | |
parent | 6e73b197479d54d5d6d7461d3cc336c545cc6295 (diff) | |
download | cpython-8bb9cde6c040fd1026b5f05d1ebdba19a8b149a8.zip cpython-8bb9cde6c040fd1026b5f05d1ebdba19a8b149a8.tar.gz cpython-8bb9cde6c040fd1026b5f05d1ebdba19a8b149a8.tar.bz2 |
correctly lookup __trunc__ and __floor__
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descr.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 10820ab..297cc35 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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): |