summaryrefslogtreecommitdiff
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-01 15:16:55 +0000
committerBenjamin Peterson <benjamin@python.org>2010-07-01 15:16:55 +0000
commita25f46e1982a539ffdf49d7bf55081723943be33 (patch)
tree00f465bc24e1bdb8fd894f218b4518bbfa1ce723 /Lib/test/test_descr.py
parent884d0da2b6079a657b24cb57b80b7414e93c5f5e (diff)
downloadcpython-a25f46e1982a539ffdf49d7bf55081723943be33.tar.gz
correctly lookup __trunc__ and __floor__
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 10820ab712..297cc35531 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):